helix.graph.model.impl
Class ImmutableRegistryValue

java.lang.Object
  extended by helix.graph.model.impl.AbstractRegistryValue
      extended by helix.graph.model.impl.ImmutableRegistryValue
All Implemented Interfaces:
RegistryValue
Direct Known Subclasses:
RBoolean, RFloat, RInteger, RString, RVoid

public abstract class ImmutableRegistryValue
extends AbstractRegistryValue

an AbstractRegistrable for Immutable objects


Constructor Summary
ImmutableRegistryValue()
           
 
Method Summary
 boolean equals(Object o)
          Compares this RegistryValue to the specified object.
 int hashCode()
          Returns a hash code for this RegistryValue equals to serialize().hashcode();
 RegistryValue klone()
          Potentially clone this instance.
 
Methods inherited from class helix.graph.model.impl.AbstractRegistryValue
serialize, toBoolean, toFloat, toInt
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface helix.graph.model.RegistryValue
toString
 

Constructor Detail

ImmutableRegistryValue

public ImmutableRegistryValue()
Method Detail

klone

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

Returns:
a clone (deep copy) of this instance. Note that it may be the instance itself (for immutable objects).

equals

public boolean equals(Object o)
Compares this RegistryValue to the specified object. The result is true if and only if the argument is not null and is a RegistryValue object that has the same serialization. This allows different basic types representing the same value to be considered as equals.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns a hash code for this RegistryValue equals to serialize().hashcode();

Overrides:
hashCode in class Object