helix.graph.model.impl
Class AbstractRegistryValue

java.lang.Object
  extended by helix.graph.model.impl.AbstractRegistryValue
All Implemented Interfaces:
RegistryValue
Direct Known Subclasses:
ImmutableRegistryValue, RColorSet

public abstract class AbstractRegistryValue
extends Object
implements RegistryValue

an abstract implmentation of Registrable, providing basic mechanisms.


Constructor Summary
AbstractRegistryValue()
           
 
Method Summary
 String serialize()
          get a String representation of this instance.
 boolean toBoolean()
           
 float toFloat()
           
 int toInt()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface helix.graph.model.RegistryValue
klone, toString
 

Constructor Detail

AbstractRegistryValue

public AbstractRegistryValue()
Method Detail

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

toInt

public int toInt()
          throws IllegalValueException
Specified by:
toInt in interface RegistryValue
Returns:
int 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

toBoolean

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