/** * Returns whether it has the rating scale's minimum value. * * @return whether it has the rating scale's minimum value */ public boolean hasMin() { return getMin() != null; }
@Override public int hashCode() { int result = getClass().hashCode(); if (getAverage() != null) { result = 37 * result + getAverage().hashCode(); } if (getMax() != null) { result = 37 * result + getMax().hashCode(); } if (getMin() != null) { result = 37 * result + getMin().hashCode(); } if (getNumRaters() != null) { result = 37 * result + getNumRaters().hashCode(); } if (getRel() != null) { result = 37 * result + getRel().hashCode(); } if (getValue() != null) { result = 37 * result + getValue().hashCode(); } return result; } }
@Override public int hashCode() { int result = getClass().hashCode(); if (getAverage() != null) { result = 37 * result + getAverage().hashCode(); } if (getMax() != null) { result = 37 * result + getMax().hashCode(); } if (getMin() != null) { result = 37 * result + getMin().hashCode(); } if (getNumRaters() != null) { result = 37 * result + getNumRaters().hashCode(); } if (getRel() != null) { result = 37 * result + getRel().hashCode(); } if (getValue() != null) { result = 37 * result + getValue().hashCode(); } return result; }
@Override public int hashCode() { int result = getClass().hashCode(); if (getAverage() != null) { result = 37 * result + getAverage().hashCode(); } if (getMax() != null) { result = 37 * result + getMax().hashCode(); } if (getMin() != null) { result = 37 * result + getMin().hashCode(); } if (getNumRaters() != null) { result = 37 * result + getNumRaters().hashCode(); } if (getRel() != null) { result = 37 * result + getRel().hashCode(); } if (getValue() != null) { result = 37 * result + getValue().hashCode(); } return result; } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Rating other = (Rating) obj; return eq(getAverage(), other.getAverage()) && eq(getMax(), other.getMax()) && eq(getMin(), other.getMin()) && eq(getNumRaters(), other.getNumRaters()) && eq(getRel(), other.getRel()) && eq(getValue(), other.getValue()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Rating other = (Rating) obj; return eq(getAverage(), other.getAverage()) && eq(getMax(), other.getMax()) && eq(getMin(), other.getMin()) && eq(getNumRaters(), other.getNumRaters()) && eq(getRel(), other.getRel()) && eq(getValue(), other.getValue()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } Rating other = (Rating) obj; return eq(getAverage(), other.getAverage()) && eq(getMax(), other.getMax()) && eq(getMin(), other.getMin()) && eq(getNumRaters(), other.getNumRaters()) && eq(getRel(), other.getRel()) && eq(getValue(), other.getValue()); }