public abstract class AbstractValue<V,T> extends Object implements Value<V,T>
Value
's equals()
, hashCode()
and
toString()
. They should be default implementations in the Value
interface itself,
but Java 8 doesn't allow to override Object
's methods by default implementations
in interfaces.Modifier | Constructor and Description |
---|---|
protected |
AbstractValue()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares
Value s' bytes representations. |
int |
hashCode()
Computes value's hash code by applying a hash function to
Value 's bytes
representation. |
String |
toString()
Delegates to
Value 's object toString() . |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
access, bytesEquivalent, equivalent, equivalent, get, getUsing, handle, hash, offset, size, writeTo, writeTo, writeTo
public int hashCode()
Value
's bytes
representation.public boolean equals(Object obj)
Value
s' bytes representations.Copyright © 2015. All rights reserved.