helix.graph.model.impl
Class AbstractRegistryValue
java.lang.Object
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.
AbstractRegistryValue
public AbstractRegistryValue()
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