org.apache.commons.lang.mutable
public class MutableObject extends Object implements Mutable, Serializable
Object wrapper.
Since: 2.1
Version: $Id: MutableObject.java 437554 2006-08-28 06:21:41Z bayard $
| Constructor Summary | |
|---|---|
| MutableObject()
Constructs a new MutableObject with the default value of null. | |
| MutableObject(Object value)
Constructs a new MutableObject with the specified value.
| |
| Method Summary | |
|---|---|
| boolean | equals(Object obj)
Compares this object against the specified object. |
| Object | getValue()
Gets the value.
|
| int | hashCode()
Returns the value's hash code or 0 if the value is null.
|
| void | setValue(Object value)
Sets the value.
|
| String | toString()
Returns the String value of this mutable.
|
null.Parameters: value a value.
true if and only if the argument
is not null and is a MutableObject object that contains the same Object
value as this object.
Parameters: obj the object to compare with.
Returns: true if the objects are the same; false otherwise.
Returns: the value
0 if the value is null.
Returns: the value's hash code or 0 if the value is null.
Parameters: value the value to set
Returns: the mutable value as a string