/** * This instance is equal to all instances of {@code SMFFormatVersionMutable} that have equal attribute values. * An uninitialized instance is equal only to itself. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; if (!(another instanceof SMFFormatVersionMutable)) return false; SMFFormatVersionMutable other = (SMFFormatVersionMutable) another; if (!isInitialized() || !other.isInitialized()) { return false; } return equalTo(other); }
/** * This instance is equal to all instances of {@code SMFFormatVersionMutable} that have equal attribute values. * An uninitialized instance is equal only to itself. * @return {@code true} if {@code this} is equal to {@code another} instance */ @Override public boolean equals(Object another) { if (this == another) return true; if (!(another instanceof SMFFormatVersionMutable)) return false; SMFFormatVersionMutable other = (SMFFormatVersionMutable) another; if (!isInitialized() || !other.isInitialized()) { return false; } return equalTo(other); }
private void checkRequiredAttributes() { if (!isInitialized()) { throw new IllegalStateException(formatRequiredAttributesMessage()); } }
private void checkRequiredAttributes() { if (!isInitialized()) { throw new IllegalStateException(formatRequiredAttributesMessage()); } }