Package com.iizix.prop
Class ReferenceString
java.lang.Object
com.iizix.prop.ReferenceString
- All Implemented Interfaces:
Cloneable
The reference string object that also can contain a custom reference object.
- Author:
- Christopher Mindus
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones the reference string.boolean
Checks if two reference strings are equal (including their object).boolean
Checks if two reference strings are equal (excluding their object).Gets the Reference Object.void
Sets the Reference Object.toString()
Converts to a String.
Constructor Details
ReferenceString
Creates the String object.
Method Details
setObject
Sets the Reference Object.- Parameters:
o
- Any object ornull
for none.
getObject
Gets the Reference Object.- Returns:
- The object set by
setObject(Object)
.
clone
Clones the reference string.- Overrides:
clone
in classObject
- Returns:
- A cloned ReferenceString instance, with the SAME object reference as set by
setObject(Object)
.
equalsOnlyReferenceString
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
Checks if two reference strings are equal (including their object). This is required in order for the reference property to fire notification events.toString
Converts to a String.