コード例 #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (!(obj instanceof ModifiableAdminObject)) return false;
   ModifiableAdminObject other = (ModifiableAdminObject) obj;
   if (className == null) {
     if (other.className != null) return false;
   } else if (!className.equals(other.className)) return false;
   if (configProperties == null) {
     if (other.configProperties != null) return false;
   } else if (!configProperties.equals(other.configProperties)) return false;
   if (enabled == null) {
     if (other.enabled != null) return false;
   } else if (!enabled.equals(other.enabled)) return false;
   if (jndiName == null) {
     if (other.jndiName != null) return false;
   } else if (!jndiName.equals(other.jndiName)) return false;
   if (poolName == null) {
     if (other.poolName != null) return false;
   } else if (!poolName.equals(other.poolName)) return false;
   if (useJavaContext == null) {
     if (other.useJavaContext != null) return false;
   } else if (!useJavaContext.equals(other.useJavaContext)) return false;
   return true;
 }
コード例 #2
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   PojoBar other = (PojoBar) obj;
   if (concurrentHashMap == null) {
     if (other.concurrentHashMap != null) return false;
   } else if (!concurrentHashMap.equals(other.concurrentHashMap)) return false;
   if (concurrentMap == null) {
     if (other.concurrentMap != null) return false;
   } else if (!concurrentMap.equals(other.concurrentMap)) return false;
   if (concurrentNavigableMap == null) {
     if (other.concurrentNavigableMap != null) return false;
   } else if (!concurrentNavigableMap.equals(other.concurrentNavigableMap)) return false;
   if (concurrentSkipListMap == null) {
     if (other.concurrentSkipListMap != null) return false;
   } else if (!concurrentSkipListMap.equals(other.concurrentSkipListMap)) return false;
   if (hashMap == null) {
     if (other.hashMap != null) return false;
   } else if (!hashMap.equals(other.hashMap)) return false;
   if (hashtable == null) {
     if (other.hashtable != null) return false;
   } else if (!hashtable.equals(other.hashtable)) return false;
   if (identityHashMap == null) {
     if (other.identityHashMap != null) return false;
   } else if (!identityHashMap.equals(other.identityHashMap)) return false;
   if (linkedHashMap == null) {
     if (other.linkedHashMap != null) return false;
   } else if (!linkedHashMap.equals(other.linkedHashMap)) return false;
   if (map == null) {
     if (other.map != null) return false;
   } else if (!map.equals(other.map)) return false;
   if (navigableMap == null) {
     if (other.navigableMap != null) return false;
   } else if (!navigableMap.equals(other.navigableMap)) return false;
   if (sortedMap == null) {
     if (other.sortedMap != null) return false;
   } else if (!sortedMap.equals(other.sortedMap)) return false;
   if (treeMap == null) {
     if (other.treeMap != null) return false;
   } else if (!treeMap.equals(other.treeMap)) return false;
   if (weakHashMap == null) {
     if (other.weakHashMap != null) return false;
   } else if (!weakHashMap.equals(other.weakHashMap)) return false;
   return true;
 }