예제 #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;
 }