hazelcast-client
Version:
Hazelcast - open source In-Memory Data Grid - client for NodeJS
45 lines • 1.68 kB
JavaScript
;
/*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
var Member = /** @class */ (function () {
function Member(address, uuid, isLiteMember, attributes) {
if (isLiteMember === void 0) { isLiteMember = false; }
if (attributes === void 0) { attributes = {}; }
this.address = address;
this.uuid = uuid;
this.isLiteMember = isLiteMember;
this.attributes = attributes;
}
Member.prototype.equals = function (other) {
if (other === this) {
return true;
}
if (other == null) {
return false;
}
if (other.address.equals(this.address) && other.uuid === this.uuid && other.isLiteMember === this.isLiteMember) {
return true;
}
return false;
};
Member.prototype.toString = function () {
return 'Member[ uuid: ' + this.uuid.toString() + ', address: ' + this.address.toString() + ']';
};
return Member;
}());
exports.Member = Member;
//# sourceMappingURL=Member.js.map