Package org.apache.commons.lang3.mutable
Class MutableObject<T>
java.lang.Object
org.apache.commons.lang3.mutable.MutableObject<T>
- Type Parameters:
- T- the type to set and get
- All Implemented Interfaces:
- Serializable,- Mutable<T>
A mutable 
Object wrapper.- Since:
- 2.1
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new MutableObject with the default value ofnull.MutableObject(T value) Constructs a new MutableObject with the specified value.
- 
Method Summary
- 
Constructor Details- 
MutableObjectpublic MutableObject()Constructs a new MutableObject with the default value ofnull.
- 
MutableObjectConstructs a new MutableObject with the specified value.- Parameters:
- value- the initial value to store
 
 
- 
- 
Method Details- 
equalsCompares this object against the specified object. The result istrueif and only if the argument is notnulland is aMutableObjectobject that contains the sameMutableObjectvalue as this object.
- 
getValueGets the value.
- 
hashCodeReturns the value's hash code or0if the value isnull.
- 
setValueSets the value.
- 
toStringReturns the String value of this mutable.
 
-