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