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
Datas' 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, waitbytes, bytesEquivalent, dataEquals, dataHashCode, equivalent, get, getUsing, hash, offset, size, writeTopublic int hashCode()
Data's bytes
representation.public boolean equals(Object obj)
Datas' bytes representations.Copyright © 2016. All rights reserved.