Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Entry other = (Entry) obj;
   if (binaryData == null) {
     if (other.binaryData != null) return false;
   } else if (!binaryData.equals(other.binaryData)) return false;
   if (binaryDescription == null) {
     if (other.binaryDescription != null) return false;
   } else if (!binaryDescription.equals(other.binaryDescription)) return false;
   if (comments == null) {
     if (other.comments != null) return false;
   } else if (!comments.equals(other.comments)) return false;
   if (creationTime == null) {
     if (other.creationTime != null) return false;
   } else if (!creationTime.equals(other.creationTime)) return false;
   if (expirationTime == null) {
     if (other.expirationTime != null) return false;
   } else if (!expirationTime.equals(other.expirationTime)) return false;
   if (groupId == null) {
     if (other.groupId != null) return false;
   } else if (!groupId.equals(other.groupId)) return false;
   if (imageId == null) {
     if (other.imageId != null) return false;
   } else if (!imageId.equals(other.imageId)) return false;
   if (lastAccessTime == null) {
     if (other.lastAccessTime != null) return false;
   } else if (!lastAccessTime.equals(other.lastAccessTime)) return false;
   if (lastModificationTime == null) {
     if (other.lastModificationTime != null) return false;
   } else if (!lastModificationTime.equals(other.lastModificationTime)) return false;
   if (notes == null) {
     if (other.notes != null) return false;
   } else if (!notes.equals(other.notes)) return false;
   if (password == null) {
     if (other.password != null) return false;
   } else if (!password.equals(other.password)) return false;
   if (title == null) {
     if (other.title != null) return false;
   } else if (!title.equals(other.title)) return false;
   if (unknowns == null) {
     if (other.unknowns != null) return false;
   } else if (!unknowns.equals(other.unknowns)) return false;
   if (url == null) {
     if (other.url != null) return false;
   } else if (!url.equals(other.url)) return false;
   if (username == null) {
     if (other.username != null) return false;
   } else if (!username.equals(other.username)) return false;
   if (uuid == null) {
     if (other.uuid != null) return false;
   } else if (!uuid.equals(other.uuid)) return false;
   return true;
 }
Ejemplo n.º 2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((binaryData == null) ? 0 : binaryData.hashCode());
   result = prime * result + ((binaryDescription == null) ? 0 : binaryDescription.hashCode());
   result = prime * result + ((comments == null) ? 0 : comments.hashCode());
   result = prime * result + ((creationTime == null) ? 0 : creationTime.hashCode());
   result = prime * result + ((expirationTime == null) ? 0 : expirationTime.hashCode());
   result = prime * result + ((groupId == null) ? 0 : groupId.hashCode());
   result = prime * result + ((imageId == null) ? 0 : imageId.hashCode());
   result = prime * result + ((lastAccessTime == null) ? 0 : lastAccessTime.hashCode());
   result =
       prime * result + ((lastModificationTime == null) ? 0 : lastModificationTime.hashCode());
   result = prime * result + ((notes == null) ? 0 : notes.hashCode());
   result = prime * result + ((password == null) ? 0 : password.hashCode());
   result = prime * result + ((title == null) ? 0 : title.hashCode());
   result = prime * result + ((unknowns == null) ? 0 : unknowns.hashCode());
   result = prime * result + ((url == null) ? 0 : url.hashCode());
   result = prime * result + ((username == null) ? 0 : username.hashCode());
   result = prime * result + ((uuid == null) ? 0 : uuid.hashCode());
   return result;
 }