Java com.google.common.base Equivalence fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.base Equivalence fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.base Equivalence.

The text is from its open source code.

Subclass

com.google.common.base.Equivalence has subclasses.
Click this link to see all its subclasses.

Constructor

Equivalence()
Constructor for use by subclasses.

Method

Equivalenceequals()
Returns an equivalence that delegates to Object#equals and Object#hashCode .
booleanequivalent(@Nullable T a, @Nullable T b)
Returns true if the given objects are considered equivalent.
PredicateequivalentTo(@Nullable T target)
Returns a predicate that evaluates to true if and only if the input is equivalent to target according to this equivalence relation.
inthash(@Nullable T t)
Returns a hash code for t .
inthashCode()
Returns a hash code value for the object.
Equivalenceidentity()
Returns an equivalence that uses == to compare values and System#identityHashCode(Object) to compute the hash code.
Wrapperwrap(@Nullable S reference)
Returns a wrapper of reference that implements Wrapper#equals(Object) Object.equals() such that wrap(a).equals(wrap(b)) if and only if equivalent(a, b) .