|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.ref.RefObject
public final class RefObject
Reference Object is the same as Object
but allows you to set the object without creating a new Object
.
Constructor Summary | |
---|---|
RefObject()
Create a new RefObject set to the default of null. |
|
RefObject(java.lang.Object value)
Create a new RefObject using a object. |
|
RefObject(java.lang.Object value,
boolean fixed)
Create a new RefObject using a object. |
Method Summary | |
---|---|
RefObject |
clone()
Create a clone of the current object. |
boolean |
equals(java.lang.Object obj)
Returns true if and only if the argument is not null and is a RefObject object that represents the same value as this object. |
int |
hashCode()
Returns a hash code for this RefObject object. |
java.lang.Object |
objectValue()
Returns The value of this RefObject object. |
RefObject |
setValue(java.lang.Object value)
Set the value of this RefObject object with a object. |
java.lang.String |
toString()
Returns a String object representing this RefObject 's value. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RefObject()
RefObject
set to the default of null.
public RefObject(java.lang.Object value)
RefObject
using a object.
value
- The object to set this RefObject
with.public RefObject(java.lang.Object value, boolean fixed)
RefObject
using a object.
value
- The object to set this RefObject
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public java.lang.Object objectValue()
RefObject
object.
public RefObject setValue(java.lang.Object value)
RefObject
object with a object.
value
- The object value to set this object.
public boolean equals(java.lang.Object obj)
RefObject
object that represents the same value as this object.
equals
in class java.lang.Object
obj
- The object to compare with.
RefObject
objects represent the same value; false otherwise.public int hashCode()
RefObject
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefObject
's value.
toString
in class java.lang.Object
public RefObject clone()
RefObject
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |