HomeSort by relevance Sort by last modified time
    Searched refs:equivalence (Results 1 - 25 of 104) sorted by null

1 2 3 4 5

  /external/guava/guava-testlib/src/com/google/common/testing/
EquivalenceTester.java 25 import com.google.common.base.Equivalence;
33 * Tester for {@link Equivalence} relationships between groups of objects.
36 * To use, create a new {@link EquivalenceTester} and add equivalence groups
52 * arbitrary class without having to explicitly add another equivalence group.
64 private final Equivalence<? super T> equivalence; field in class:EquivalenceTester
68 private EquivalenceTester(Equivalence<? super T> equivalence) {
69 this.equivalence = checkNotNull(equivalence);
    [all...]
RelationshipTester.java 22 import com.google.common.base.Equivalence;
32 * equivalence classes.
46 * A word about using {@link Equivalence}, which automatically checks for {@code null} and
50 * directly against {@code equals()} rather than through the {@code Equivalence}.
52 private final Equivalence<? super T> equivalence; field in class:RelationshipTester
58 RelationshipTester(Equivalence<? super T> equivalence, String relationshipName, String hashName,
60 this.equivalence = checkNotNull(equivalence);
    [all...]
  /external/guava/guava/src/com/google/common/base/
Equivalence.java 30 * equivalences are the {@linkplain #identity() identity equivalence} and {@linkplain #equals equals
31 * equivalence}.
40 public abstract class Equivalence<T> {
44 protected Equivalence() {}
49 * <p>The {@code equivalent} method implements an equivalence relation on object references:
91 * according to the definition of the equivalence. The hash need not remain consistent from
93 * <li>It is <i>distributable across equivalence</i>: for any references {@code x} and {@code y},
95 * that the hash be distributable across <i>inequivalence</i>. If {@code equivalence(x, y)}
117 * Returns a new equivalence relation for {@code F} which evaluates equivalence by first applyin
173 private final Equivalence<? super T> equivalence; field in class:Equivalence.Wrapper
204 Equivalence<Object> equivalence = (Equivalence<Object>) this.equivalence; local
260 private final Equivalence<T> equivalence; field in class:Equivalence.EquivalentToPredicate
    [all...]
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
MethodSignature.java 5 import com.google.common.base.Equivalence;
15 abstract ImmutableList<Equivalence.Wrapper<TypeMirror>> parameterTypes();
16 abstract ImmutableList<Equivalence.Wrapper<TypeMirror>> thrownTypes();
20 ImmutableList.Builder<Equivalence.Wrapper<TypeMirror>> parameters = ImmutableList.builder();
21 ImmutableList.Builder<Equivalence.Wrapper<TypeMirror>> thrownTypes = ImmutableList.builder();
23 parameters.add(MoreTypes.equivalence().wrap(parameter));
26 thrownTypes.add(MoreTypes.equivalence().wrap(thrownType));
Scope.java 118 * {@link AnnotationMirrors#equivalence()}.
126 return AnnotationMirrors.equivalence()
135 return AnnotationMirrors.equivalence().hash(annotationMirror);
Key.java 22 import com.google.common.base.Equivalence;
72 * to represent logical equality, so {@link AnnotationMirrors#equivalence()}
75 abstract Optional<Equivalence.Wrapper<AnnotationMirror>> wrappedQualifier();
81 * logical equality, so {@link MoreTypes#equivalence()} wraps this type.
83 abstract Equivalence.Wrapper<TypeMirror> wrappedType();
100 MoreTypes.equivalence().wrap(normalize(types, newType)));
294 wrapOptionalInEquivalence(AnnotationMirrors.equivalence(), getQualifier(method)),
295 MoreTypes.equivalence().wrap(keyType));
300 Optional.<Equivalence.Wrapper<AnnotationMirror>>absent(),
301 MoreTypes.equivalence().wrap(type))
    [all...]
Util.java 20 import com.google.common.base.Equivalence;
21 import com.google.common.base.Equivalence.Wrapper;
102 static <T> Optional<Equivalence.Wrapper<T>> wrapOptionalInEquivalence(
103 Equivalence<T> equivalence, Optional<T> optional) {
105 ? Optional.of(equivalence.wrap(optional.get()))
106 : Optional.<Equivalence.Wrapper<T>>absent();
114 Optional<Equivalence.Wrapper<T>> wrappedOptional) {
BuilderValidator.java 19 import com.google.common.base.Equivalence;
108 Multimap<Equivalence.Wrapper<TypeMirror>, ExecutableElement> methodsPerParam =
139 MoreTypes.equivalence().<TypeMirror>wrap(
156 for (Map.Entry<Equivalence.Wrapper<TypeMirror>, Collection<ExecutableElement>> entry :
ContributionBinding.java 19 import com.google.common.base.Equivalence;
20 import com.google.common.base.Equivalence.Wrapper;
280 new Function<ContributionBinding, Equivalence.Wrapper<DeclaredType>>() {
282 public Equivalence.Wrapper<DeclaredType> apply(ContributionBinding mapBinding) {
283 return MoreTypes.equivalence()
ComponentDescriptor.java 420 || MoreTypes.equivalence().equivalent(returnType, parameterTypes.get(0)))) {
  /external/dagger2/compiler/src/test/java/dagger/internal/codegen/
KeyTest.java 19 import com.google.common.base.Equivalence;
75 Optional.<Equivalence.Wrapper<AnnotationMirror>>absent(),
76 MoreTypes.equivalence().wrap(typeElement.asType())));
93 Optional.<Equivalence.Wrapper<AnnotationMirror>>absent(),
94 MoreTypes.equivalence().wrap(stringType)));
114 assertThat(MoreTypes.equivalence().wrap(key.qualifier().get().getAnnotationType()))
115 .isEqualTo(MoreTypes.equivalence().wrap(qualifierElement.asType()));
116 assertThat(key.wrappedType()).isEqualTo(MoreTypes.equivalence().wrap(stringType));
169 Optional.<Equivalence.Wrapper<AnnotationMirror>>absent(),
170 MoreTypes.equivalence().wrap(setOfStringsType)))
    [all...]
  /external/v8/test/unittests/compiler/
control-equivalence-unittest.cc 6 #include "src/compiler/control-equivalence.h"
37 ControlEquivalence equivalence(zone(), graph());
38 equivalence.Run(node);
41 classes_[node->id()] = equivalence.ClassOf(node);
  /external/guava/guava/src/com/google/common/cache/
CacheBuilder.java 27 import com.google.common.base.Equivalence;
232 Equivalence<Object> keyEquivalence;
233 Equivalence<Object> valueEquivalence;
286 * Sets a custom {@code Equivalence} strategy for comparing keys.
288 * <p>By default, the cache uses {@link Equivalence#identity} to determine key equality when
289 * {@link #weakKeys} is specified, and {@link Equivalence#equals()} otherwise.
292 CacheBuilder<K, V> keyEquivalence(Equivalence<Object> equivalence) {
293 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
294 keyEquivalence = checkNotNull(equivalence);
    [all...]
  /external/guava/guava/src/com/google/common/collect/
GenericMapMaker.java 22 import com.google.common.base.Equivalence;
70 abstract GenericMapMaker<K0, V0> keyEquivalence(Equivalence<Object> equivalence);
MapMaker.java 25 import com.google.common.base.Equivalence;
128 Equivalence<Object> keyEquivalence;
139 * Sets a custom {@code Equivalence} strategy for comparing keys.
141 * <p>By default, the map uses {@link Equivalence#identity} to determine key equality when {@link
142 * #weakKeys} is specified, and {@link Equivalence#equals()} otherwise. The only place this is
147 MapMaker keyEquivalence(Equivalence<Object> equivalence) {
148 checkState(keyEquivalence == null, "key equivalence was already set to %s", keyEquivalence);
149 keyEquivalence = checkNotNull(equivalence);
154 Equivalence<Object> getKeyEquivalence()
    [all...]
  /external/v8/test/mjsunit/regress/
regress-latin-1.js 71 // Unicode equivalence
75 // Unicode equivalence ranges
  /external/eigen/blas/fortran/
lsame.f 39 * Now test for equivalence if both characters are alphabetic.
  /external/mesa3d/docs/
MESA_ycbcr_texture.spec 116 another item to the list of TexImage2D and TexImage3D equivalence
133 another item to the list of TexImage1D and TexImage2D equivalence
  /frameworks/rs/api/
GenerateStubsWhiteList.cpp 35 const char* equivalence; // The mangled equivalent member in struct:BuiltInMangling
172 return a.equivalence;
  /prebuilts/go/darwin-x86/src/encoding/json/
fold.go 18 // foldFunc returns one of four different case folding equivalence
  /prebuilts/go/linux-x86/src/encoding/json/
fold.go 18 // foldFunc returns one of four different case folding equivalence
  /external/dagger2/lib/
auto-common-1.0-20151022.071545-39.jar 
  /prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.4/
auto-common-0.4.jar 
  /prebuilts/tools/common/eclipse/
org.eclipse.ui.workbench.texteditor_3.6.1.r361_v20100714-0800.jar 
  /prebuilts/go/darwin-x86/src/unicode/
letter.go 351 // equivalence class containing rune and ToLower(rune)

Completed in 485 milliseconds

1 2 3 4 5