/** * Ensures that serialization returns the unique instances. * * @return The object. * * @throws ObjectStreamException if there is a problem. */ private Object readResolve() throws ObjectStreamException { if (this.equals(LengthAdjustmentType.NO_CHANGE)) { return LengthAdjustmentType.NO_CHANGE; } else if (this.equals(LengthAdjustmentType.EXPAND)) { return LengthAdjustmentType.EXPAND; } else if (this.equals(LengthAdjustmentType.CONTRACT)) { return LengthAdjustmentType.CONTRACT; } return null; }
/** * Ensures that serialization returns the unique instances. * * @return The object. * * @throws ObjectStreamException if there is a problem. */ private Object readResolve() throws ObjectStreamException { if (this.equals(LengthAdjustmentType.NO_CHANGE)) { return LengthAdjustmentType.NO_CHANGE; } else if (this.equals(LengthAdjustmentType.EXPAND)) { return LengthAdjustmentType.EXPAND; } else if (this.equals(LengthAdjustmentType.CONTRACT)) { return LengthAdjustmentType.CONTRACT; } return null; }
/** * Ensures that serialization returns the unique instances. * * @return The object. * * @throws ObjectStreamException if there is a problem. */ private Object readResolve() throws ObjectStreamException { if (this.equals(LengthAdjustmentType.NO_CHANGE)) { return LengthAdjustmentType.NO_CHANGE; } else if (this.equals(LengthAdjustmentType.EXPAND)) { return LengthAdjustmentType.EXPAND; } else if (this.equals(LengthAdjustmentType.CONTRACT)) { return LengthAdjustmentType.CONTRACT; } return null; }
return false; if (!this.labelOffsetType.equals(that.labelOffsetType)) { return false;