Home | History | Annotate | Download | only in base

Lines Matching defs:that

61    *     false} (provided that neither {@code x} nor {@code y} is modified).
95 * that the hash be distributable across <i>inequivalence</i>. If {@code equivalence(x, y)}
118 * {@code function} to the argument, then evaluating using {@code this}. That is, for any pair of
130 * <p>Note that {@code function} must be consistent according to {@code this} equivalence
131 * relation. That is, invoking {@link Function#apply} multiple times for a given value must return
134 * because it's not guaranteed that {@link Object#toString}) always returns the same string
144 * Returns a wrapper of {@code reference} that implements
145 * {@link Wrapper#equals(Object) Object.equals()} such that
155 * Wraps an object so that {@link #equals(Object)} and {@link #hashCode()} delegate to an
159 * that tests equivalence using their lengths:
165 * <p>Note in particular that an equivalence wrapper is never equal to the object it wraps.
196 Wrapper<?> that = (Wrapper<?>) obj; // note: not necessarily a Wrapper<T>
198 if (this.equivalence.equals(that.equivalence)) {
200 * We'll accept that as sufficient "proof" that either equivalence should be able to
205 return equivalence.equivalent(this.reference, that.reference);
235 * <p>Note that this method performs a similar function for equivalences as {@link
243 // the need for this is so rare that it's not worth making callers deal with the ugly wildcard.
248 * Returns a predicate that evaluates to true if and only if the input is
277 EquivalentToPredicate<?> that = (EquivalentToPredicate<?>) obj;
278 return equivalence.equals(that.equivalence)
279 && Objects.equal(target, that.target);
296 * Returns an equivalence that delegates to {@link Object#equals} and {@link Object#hashCode}.
310 * Returns an equivalence that uses {@code ==} to compare values and {@link
312 * returns {@code true} if {@code a == b}, including in the case that a and b are both null.