@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoCrowdedLength other = (GphotoCrowdedLength) obj; return eq(value, other.value); }
/** * Immutable constructor. * * @param value number of crowded results. */ public GphotoCrowdedLength(Integer value) { super(); setValue(value); setImmutable(true); }
/** * Sets the number of crowded results. * * @param value number of crowded results or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
/** * Returns whether it has the number of crowded results. * * @return whether it has the number of crowded results */ public boolean hasValue() { return getValue() != null; }
/** * Returns whether it has the number of crowded results. * * @return whether it has the number of crowded results */ public boolean hasValue() { return getValue() != null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoCrowdedLength other = (GphotoCrowdedLength) obj; return eq(value, other.value); }
/** * Immutable constructor. * * @param value number of crowded results. */ public GphotoCrowdedLength(Integer value) { super(); setValue(value); setImmutable(true); }
/** * Sets the number of crowded results. * * @param value number of crowded results or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }