@Override // GemStoneAddition public boolean equals(Object obj) { if(obj == null) return false; if (!(obj instanceof LogicalAddress)) return false; // GemStoneAddition return compareTo(obj) == 0 ? true : false; }
/** * Establishes an order between 2 addresses. Assumes other contains non-null IpAddress. * Excludes channel_name from comparison. * @return 0 for equality, value less than 0 if smaller, greater than 0 if greater. */ public int compare(LogicalAddress other) { return compareTo(other); }