コード例 #1
0
ファイル: ZoneInfo.java プロジェクト: jshjs11/xi
 @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);
 }
コード例 #2
0
 @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;
 }