Package com.iizix.prop
Class ReferenceString
- java.lang.Object
- com.iizix.prop.ReferenceString
 
- All Implemented Interfaces:
- java.lang.Cloneable
 - public class ReferenceString extends java.lang.Object implements java.lang.CloneableThe reference string object that also can contain a custom reference object.- Author:
- Christopher Mindus
 
- Constructor Summary- Constructors - Constructor - Description - ReferenceString(java.lang.String s)Creates the String object.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- equals(java.lang.Object o)Checks if two reference strings are equal (including their object).- boolean- equalsOnlyReferenceString(ReferenceString rs)Checks if two reference strings are equal (excluding their object).- java.lang.Object- getObject()Gets the Reference Object.- void- setObject(java.lang.Object o)Sets the Reference Object.- java.lang.String- toString()Converts to a String.
 
- Method Detail- setObject- public void setObject(java.lang.Object o) Sets the Reference Object.
 - getObject- public java.lang.Object getObject() Gets the Reference Object.
 - equalsOnlyReferenceString- public boolean equalsOnlyReferenceString(ReferenceString rs) Checks if two reference strings are equal (excluding their object). This method is used to check comparisons when saving a file.- Parameters:
- rs- The other reference string to compare with.
- Returns:
- true for equals, false otherwise.
 
 - equals- public boolean equals(java.lang.Object o) Checks if two reference strings are equal (including their object). This is required in order for the reference property to fire notification events.- Overrides:
- equalsin class- java.lang.Object
- Parameters:
- o- The object to compare with.
- Returns:
- true for equals, false otherwise.
 
 - toString- public java.lang.String toString() Converts to a String.- Overrides:
- toStringin class- java.lang.Object