helix.graph.model.impl
Class RVoid

java.lang.Object
  extended by helix.graph.model.impl.AbstractRegistryValue
      extended by helix.graph.model.impl.ImmutableRegistryValue
          extended by helix.graph.model.impl.RVoid
All Implemented Interfaces:
RegistryValue

public class RVoid
extends ImmutableRegistryValue

a RegistryValue containing nothing (mostly used for flags)

Author:
viari

Constructor Summary
RVoid()
           
 
Method Summary
 String serialize()
          get a String representation of this instance.
 boolean toBoolean()
           
 float toFloat()
           
 int toInt()
           
 String toString()
          Get a String representation of this instance value note: this representation may not be suitable as the constructor argument, use serialize() instead.
 
Methods inherited from class helix.graph.model.impl.ImmutableRegistryValue
equals, hashCode, klone
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RVoid

public RVoid()
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
Overrides:
serialize in class AbstractRegistryValue
Returns:
string representation of this instance

toBoolean

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

toFloat

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

toInt

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

toString

public String toString()
                throws IllegalValueException
Description copied from interface: RegistryValue
Get a String representation of this instance value note: this representation may not be suitable as the constructor argument, use serialize() instead.

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