public int compareTo(Member other) { // memberId is InternalDistributedMember which implements Comparable return this.memberId.compareTo(other.memberId); } }
public int compareTo(Member other) { // memberId is InternalDistributedMember which implements Comparable return this.memberId.compareTo(other.memberId); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } // GemStone fix for 29125 if ((obj == null) || !(obj instanceof InternalDistributedMember)) { return false; } return compareTo((InternalDistributedMember)obj) == 0; }
/** * implements the java.lang.Comparable interface * * @see java.lang.Comparable * @param o - * the Object to be compared * @return a negative integer, zero, or a positive integer as this object is * less than, equal to, or greater than the specified object. * @exception java.lang.ClassCastException - * if the specified object's type prevents it from being compared * to this Object. */ public int compareTo(DistributedMember o) { return compareTo(o, true); }
if (mbrIsNoob) { if (coordIsNoob && (coord == null || coord.compareTo(mbr, false) > 0)) { coord = mbr;
if (mbr.compareTo(m, false) == 0) { oldIDs.add(m); break;
if (localAddress.compareTo(mbr) == 0) { viewContainsMyUnjoinedAddress = true; break;