Пример #1
0
 @LogEntry(logger = "global")
 public boolean equals(Object otherObject) {
   if (this == otherObject) return true;
   if (otherObject == null) return false;
   if (getClass() != otherObject.getClass()) return false;
   Item other = (Item) otherObject;
   return Objects.equals(description, other.description) && partNumber == other.partNumber;
 }
Пример #2
0
 @LogEntry(logger = "global")
 public int hashCode() {
   return Objects.hash(description, partNumber);
 }