public boolean equals()

in solution-or-component-generation/spring-boot/java/src/main/java/com/epam/aicode/springpr/domain/Item.java [44:54]


    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Item other = (Item) obj;
        return Objects.equals(id, other.id) && Objects.equals(name, other.name)
                && Objects.equals(expiredAfter, other.expiredAfter);
    }