gnu.trove.TObjectCanonicalHashingStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trove4j Show documentation
Show all versions of trove4j Show documentation
Fork of trove4j library used in IntelliJ Platform.
The newest version!
package gnu.trove;
/**
* @author dyoma
*/
class TObjectCanonicalHashingStrategy implements TObjectHashingStrategy {
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;
}
}