Beispiel #1
0
 @Override
 public boolean equals(Object obj) {
   if (!(obj instanceof ZoneInfo)) {
     return false;
   }
   ZoneInfo other = (ZoneInfo) obj;
   return Objects.equal(mDaylightName, other.mDaylightName)
       && Objects.equal(mStandardName, other.mStandardName)
       && hasSameRules(other);
 }
 @Override
 public boolean equals(Object other) {
   if (other instanceof Address) {
     Address that = (Address) other;
     return Objects.equal(this.proxy, that.proxy)
         && this.uriHost.equals(that.uriHost)
         && this.uriPort == that.uriPort
         && this.requiresTunnel == that.requiresTunnel;
   }
   return false;
 }