Esempio n. 1
0
 @Override
 public int hashCode() {
   int result = item.hashCode();
   result = 31 * result + itemName.hashCode();
   result = 31 * result + type.hashCode();
   return result;
 }
Esempio n. 2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof FolderItem)) {
      return false;
    }

    FolderItem folderItem = (FolderItem) o;

    if (!item.equals(folderItem.item)) {
      return false;
    }

    if (!itemName.equals(folderItem.itemName)) {
      return false;
    }

    return type.equals(folderItem.type);
  }