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