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