package gnu.trove;

/**
 * @author dyoma
 */
class TObjectCanonicalHashingStrategy<T> implements TObjectHashingStrategy<T> {
  public int computeHashCode(T value) {
    return value != null ? value.hashCode() : 0;
  }

  public boolean equals(T value, T value1) {
    return value != null ? value.equals(value1) : value1 == null;
  }
}
