Java-Lang -> Chronicle-Bytes, Chronicle-Values

This commit is contained in:
leventov
2015-11-22 22:10:39 +03:00
parent b6f5b7cab5
commit ade2196e72
277 changed files with 5193 additions and 12072 deletions
@@ -16,8 +16,6 @@
package net.openhft.chronicle.hash;
import net.openhft.chronicle.algo.hashing.LongHashFunction;
/**
* Defines reasonable defaults for {@code Data}'s {@code equals()}, {@code hashCode()} and
* {@code toString()}. They should be default implementations in the {@code Data} interface itself,
@@ -37,7 +35,7 @@ public abstract class AbstractData<V> implements Data<V> {
*/
@Override
public int hashCode() {
return (int) hash(LongHashFunction.city_1_1());
return dataHashCode();
}
/**
@@ -45,9 +43,7 @@ public abstract class AbstractData<V> implements Data<V> {
*/
@Override
public boolean equals(Object obj) {
return obj != null &&
obj instanceof Data &&
Data.bytesEquivalent(this, (Data<?>) obj);
return dataEquals(obj);
}
/**