@Override public int hashCode() { return Objects.hash(Integer.valueOf(getPos()), getValue(), this.country, this.language); }
@Override public int hashCode() { return Objects.hash(Integer.valueOf(getPos()), getValue(), this.country, this.language); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (this.getClass() != obj.getClass()) { return false; } @SuppressWarnings("unchecked") final ValueWithPosAndCountry<E> other = (ValueWithPosAndCountry<E>) obj; return getPos() == other.getPos() // && Objects.equals(getValue(), other.getValue()) // && StringUtils.equals(this.country, other.country) // && StringUtils.equals(this.language, other.language); } }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (this.getClass() != obj.getClass()) { return false; } @SuppressWarnings("unchecked") final ValueWithPosAndCountry<E> other = (ValueWithPosAndCountry<E>) obj; return getPos() == other.getPos() // && Objects.equals(getValue(), other.getValue()) // && StringUtils.equals(this.country, other.country) // && StringUtils.equals(this.language, other.language); } }