| |
|
| java.lang.Object org.apache.commons.lang.mutable.MutableObject
MutableObject | public class MutableObject implements Mutable,Serializable(Code) | | A mutable Object wrapper.
since: 2.1 version: $Id: MutableObject.java 437554 2006-08-28 06:21:41Z bayard $ |
Constructor Summary | |
public | MutableObject() Constructs a new MutableObject with the default value of null . | public | MutableObject(Object value) Constructs a new MutableObject with the specified value. |
Method Summary | |
public boolean | equals(Object obj) Compares this object against the specified object. | public Object | getValue() Gets the value. | public int | hashCode() Returns the value's hash code or 0 if the value is null . | public void | setValue(Object value) Sets the value. | public String | toString() Returns the String value of this mutable. |
MutableObject | public MutableObject()(Code) | | Constructs a new MutableObject with the default value of null .
|
MutableObject | public MutableObject(Object value)(Code) | | Constructs a new MutableObject with the specified value.
Parameters: value - a value. |
equals | public boolean equals(Object obj)(Code) | | Compares this object against the specified object. The result is 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. true if the objects are the same; false otherwise. |
getValue | public Object getValue()(Code) | | Gets the value.
the value |
hashCode | public int hashCode()(Code) | | Returns the value's hash code or 0 if the value is null .
the value's hash code or 0 if the value is null . |
setValue | public void setValue(Object value)(Code) | | Sets the value.
Parameters: value - the value to set |
toString | public String toString()(Code) | | Returns the String value of this mutable.
the mutable value as a string |
|
|
|