MutableObject¶
- public class org.apache.commons.lang3.mutable.MutableObject<T> implements Mutable<T>, Serializable[source]¶
A mutable
Objectwrapper.This class was created before the introduction of the
java.util.concurrent.atomicpackage and theAtomicReferenceclass.- Type parameters:
<T> – The type to set and get.
- Since:
2.1
- See also:
Constructors¶
Constructs a new MutableObject with the default value of |
|
Constructs a new MutableObject with the specified value. |
Methods¶
|
Compares this object against the specified object. |
|
|
Deprecated. Gets the value. |
|
|
Returns the value's hash code or |
|
|
Sets the value. |
|
Returns the String value of this mutable. |
- public boolean equals(Object obj)[source]¶
Compares this object against the specified object. The result is
trueif and only if the argument is notnulland is aMutableObjectobject that contains the sameTvalue as this object.
- @Deprecated public T getValue()[source]¶
Deprecated: Use
Mutable.get().Gets the value.