示例#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);
 }
 @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;
 }