/** * Returns the hash code of this instance. * * @return The hash code of this instance. */ @Override public int hashCode() { return this instanceof BaseUnit ? System.identityHashCode(this) : dimension.hashCode(); }
/** * Returns the hash code of this instance. * * @return The hash code of this instance. */ @Override public int hashCode() { return this instanceof BaseUnit ? System.identityHashCode(this) : dimension.hashCode(); }