helix.graph.model.impl
Class RObject

java.lang.Object
  extended by helix.graph.model.impl.RObject
All Implemented Interfaces:
RegistryValue

public class RObject
extends Object
implements RegistryValue

a memory implementation of a RegistryValue to hold any Object !! please use scarcely !!! note: this can be used for weak references too


Constructor Summary
RObject(Object o)
           
 
Method Summary
 Object get()
           
 RegistryValue klone()
          Potentially clone this instance.
 String serialize()
          get a String representation of this instance.
 Object set(Object o)
           
 boolean toBoolean()
           
 float toFloat()
           
 int toInt()
           
 String toString()
          a human readable version of toString()
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RObject

public RObject(Object o)
        throws IllegalValueException
Throws:
IllegalValueException
Method Detail

klone

public RegistryValue klone()
Description copied from interface: RegistryValue
Potentially clone this instance.

Specified by:
klone in interface RegistryValue
Returns:
a clone (deep copy) of this instance. Note that it may be the instance itself (for immutable objects).

serialize

public String serialize()
Description copied from interface: RegistryValue
get a String representation of this instance. this representation can further be used as a constructor argument to reconstruct this instance.

Specified by:
serialize in interface RegistryValue
Returns:
string representation of this instance

toBoolean

public boolean toBoolean()
                  throws IllegalValueException
Specified by:
toBoolean in interface RegistryValue
Returns:
boolean representation of this instance value
Throws:
IllegalValueException

toFloat

public float toFloat()
              throws IllegalValueException
Specified by:
toFloat in interface RegistryValue
Returns:
float representation of this instance value
Throws:
IllegalValueException

toInt

public int toInt()
          throws IllegalValueException
Specified by:
toInt in interface RegistryValue
Returns:
int representation of this instance value
Throws:
IllegalValueException

get

public Object get()

set

public Object set(Object o)

toString

public String toString()
a human readable version of toString()

Specified by:
toString in interface RegistryValue
Overrides:
toString in class Object
Returns:
String representation of this instance value