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