HomeSort by relevance Sort by last modified time
    Searched defs:of (Results 251 - 275 of 1403) sorted by null

<<11121314151617181920>>

  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableSetMultimap.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 * a <i>view</i> of a separate multimap which can still change, an instance of
44 * you easily make a "defensive copy" of a multimap provided to your class by
48 * it has no public or protected constructors. Thus, instances of this class
66 public static <K, V> ImmutableSetMultimap<K, V> of() { method in class:ImmutableSetMultimap
73 public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1) { method in class:ImmutableSetMultimap
81 * Repeated occurrences of an entry (according to {@link Object#equals}) after
84 public static <K, V> ImmutableSetMultimap<K, V> of(K k1, V v1, K k2, V v2) method in class:ImmutableSetMultimap
96 public static <K, V> ImmutableSetMultimap<K, V> of( method in class:ImmutableSetMultimap
110 public static <K, V> ImmutableSetMultimap<K, V> of( method in class:ImmutableSetMultimap
125 public static <K, V> ImmutableSetMultimap<K, V> of( method in class:ImmutableSetMultimap
    [all...]
ImmutableSortedMap.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 * GWT emulated version of {@link ImmutableSortedMap}. It's a thin wrapper
44 // of the map that needs to be serialized.
51 // The comparator used by this map. It's the same as that of sortedDelegate,
53 // non-null instance of Ordering.natural().
55 // The comparator will likely also differ because of our nullAccepting hack.
56 // See the bottom of the file for more information about it.
78 public static <K, V> ImmutableSortedMap<K, V> of() { method in class:ImmutableSortedMap
83 of(K k1, V v1) method in class:ImmutableSortedMap
88 of(K k1, V v1, K k2, V v2) { method in class:ImmutableSortedMap
94 of(K k1, V v1, K k2, V v2, K k3, V v3) { method in class:ImmutableSortedMap
100 of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { method in class:ImmutableSortedMap
106 of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) { method in class:ImmutableSortedMap
    [all...]
ImmutableSortedSet.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34 * GWT emulation of {@link ImmutableSortedSet}.
75 public static <E> ImmutableSortedSet<E> of() { method in class:ImmutableSortedSet
79 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( method in class:ImmutableSortedSet
85 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( method in class:ImmutableSortedSet
91 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( method in class:ImmutableSortedSet
97 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( method in class:ImmutableSortedSet
103 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( method in class:ImmutableSortedSet
109 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of( method in class:ImmutableSortedSet
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
ContiguousSetTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69 ImmutableSortedSet.of(1, 2, 3))
100 assertEquals(ImmutableSet.of(), ContiguousSet.create(Range.closedOpen(1, 1), integers()));
101 assertEquals(ImmutableSet.of(), ContiguousSet.create(Range.openClosed(5, 5), integers()));
102 assertEquals(ImmutableSet.of(),
104 assertEquals(ImmutableSet.of(),
207 for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
210 for (Set<Integer> subset : Sets.powerSet(ImmutableSet.of(1, 2, 3))) {
211 assertFalse(set.containsAll(Sets.union(subset, ImmutableSet.of(9))))
    [all...]
ImmutableTableTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 assertEquals(ImmutableTable.of(), builder.build());
44 assertEquals(ImmutableTable.of('a', 1, "foo"), builder
62 assertEquals(ImmutableTable.of('a', 1, "foo"), builder
120 assertEquals(ImmutableTable.of('K', 42, "foo"), builder.build());
SingletonImmutableTableTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40 assertEquals(ImmutableSet.of(Tables.immutableCell('a', 1, "blah")), testTable.cellSet());
44 assertEquals(ImmutableMap.of(), testTable.column(0));
45 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1));
49 assertEquals(ImmutableSet.of(1), testTable.columnKeySet());
53 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap());
57 assertEquals(ImmutableMap.of(), testTable.row('A'));
58 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a'))
    [all...]
  /external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/
MapPutAllTester.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
95 putAll(MinimalCollection.of(samples.e3, samples.e0));
105 putAll(MinimalCollection.of(samples.e3, samples.e0));
117 putAll(MinimalCollection.of(samples.e3, samples.e0));
128 putAll(MinimalCollection.of(samples.e0));
  /external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
MapPutAllTester.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
98 putAll(MinimalCollection.of(samples.e3, samples.e0));
108 putAll(MinimalCollection.of(samples.e3, samples.e0));
120 putAll(MinimalCollection.of(samples.e3, samples.e0));
131 putAll(MinimalCollection.of(samples.e0));
  /external/guava/guava-tests/test/com/google/common/base/
EnumsTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53 assertEquals(Optional.of(TestEnum.CHEETO), Enums.getIfPresent(TestEnum.class, "CHEETO"));
54 assertEquals(Optional.of(TestEnum.HONDA), Enums.getIfPresent(TestEnum.class, "HONDA"));
55 assertEquals(Optional.of(TestEnum.POODLE), Enums.getIfPresent(TestEnum.class, "POODLE"));
82 // Create a second ClassLoader and use it to get a second version of the TestEnum class.
  /external/guava/guava-tests/test/com/google/common/collect/
ImmutableTableTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
44 assertEquals(ImmutableTable.of(), builder.build());
45 assertEquals(ImmutableTable.of('a', 1, "foo"), builder
63 assertEquals(ImmutableTable.of('a', 1, "foo"), builder
121 assertEquals(ImmutableTable.of('K', 42, "foo"), builder.build());
RegularImmutableTableTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
30 ImmutableSet.of(
36 ImmutableSet.of('a', 'b');
39 ImmutableSet.of(1, 2);
51 return ImmutableList.<ImmutableTable<Character, Integer, String>>of(SPARSE,
98 assertTrue(RegularImmutableTable.forCells(ImmutableSet.of(
119 assertEquals(ImmutableMap.of('a', "foo", 'b', "bar"),
121 assertEquals(ImmutableMap.of('a', "baz"), testInstance.column(2));
122 assertEquals(ImmutableMap.of(), testInstance.column(3))
    [all...]
SingletonImmutableTableTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41 assertEquals(ImmutableSet.of(Tables.immutableCell('a', 1, "blah")), testTable.cellSet());
45 assertEquals(ImmutableMap.of(), testTable.column(0));
46 assertEquals(ImmutableMap.of('a', "blah"), testTable.column(1));
50 assertEquals(ImmutableSet.of(1), testTable.columnKeySet());
54 assertEquals(ImmutableMap.of(1, ImmutableMap.of('a', "blah")), testTable.columnMap());
58 assertEquals(ImmutableMap.of(), testTable.row('A'));
59 assertEquals(ImmutableMap.of(1, "blah"), testTable.row('a'))
    [all...]
  /external/guava/guava-tests/test/com/google/common/io/
ResourcesTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72 assertEquals(ImmutableList.of(I18N),
138 // loader, even if it is not visible to the loader of the Resources class.
  /external/guice/core/src/com/google/inject/internal/
SingletonScope.java 29 * Implementation of this class seems unreasonably complicated at the first sight.
32 * Still I want to assure you that hundreds(?) of hours were thrown
63 * its APIs we need a lot of code. Additional complexity comes from inherent data races
109 * -- special type of a lock, that prevents potential deadlocks,
130 // cache volatile variable for the usual case of already initialized object
139 // this thread now owns creation of an instance
213 throw new ProvisionException(ImmutableList.of(
222 // caching volatile variable to minimize number of reads performed
242 * <p>The main thing being done is creating a list of Dependencies involved into
279 // check that all of the keys are still present in dependency chain in orde
    [all...]
  /external/guice/extensions/multibindings/test/com/google/inject/multibindings/
ProvidesIntoTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
128 assertEquals(ImmutableSet.of("foo", "foo2"), fooSet);
131 assertEquals(ImmutableSet.of("bar", "bar2"), barSet);
134 assertEquals(ImmutableSet.of("na", "na2"), noAnnotationSet);
138 assertEquals(ImmutableMap.of("fooKey", "foo", "foo2Key", "foo2"), fooMap);
142 assertEquals(ImmutableMap.of(String.class, "bar", Number.class, "bar2"), barMap);
146 assertEquals(ImmutableMap.of(TestEnum.A, "na", TestEnum.B, "na2"), noAnnotationMap);
150 assertEquals(ImmutableMap.of(wrappedKeyFor(1), 11, wrappedKeyFor(2), 22), wrappedMap);
207 assertEquals(ImmutableSet.of("foo"), injector.getInstance(new Key<Set<String>>() {}))
    [all...]
  /external/guice/extensions/testlib/src/com/google/inject/testing/fieldbinder/
BoundFieldModule.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
46 * For each {@link Bind} annotated field of an object and its superclasses, this module will bind
52 * {@link Bind#to} instead of the field's actual type.
62 * If the field is of type {@link Provider}, the field's value will be bound as a {@link Provider}
73 * {@literal @}Bind private List{@code <Object>} listOfObjects = Lists.of();
90 * Guice.createInjector(BoundFieldModule.of(this)).injectMembers(this);
109 * Create a BoundFieldModule which binds the {@link Bind} annotated fields of {@code instance}.
112 * @return a module which will bind the {@link Bind} annotated fields of {@code instance}.
114 public static BoundFieldModule of(Object instance) method in class:BoundFieldModule
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
Relation.java 3 // License & terms of use: http://www.unicode.org/copyright.html#License
28 * A Relation is a set of mappings from keys to values.
32 * @hide Only a subset of ICU is exposed in Android
41 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { method in class:Relation
45 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { method in class:Relation
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
Relation.java 2 // License & terms of use: http://www.unicode.org/copyright.html#License
27 * A Relation is a set of mappings from keys to values.
39 public static <K, V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator) { method in class:Relation
43 public static <K,V> Relation<K, V> of(Map<K, Set<V>> map, Class<?> setCreator, Comparator<V> setComparator) { method in class:Relation
  /external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/
JavassistClassDeclarationTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
151 assertEquals(ImmutableSet.of("com.github.javaparser.ast.Node", "java.lang.Object"), cu.getAllSuperClasses().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
157 assertEquals(ImmutableSet.of("com.github.javaparser.ast.Node", "java.lang.Object"), cu.getAllAncestors().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
163 assertEquals(ImmutableSet.of(), compilationUnit.getInterfaces().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
166 assertEquals(ImmutableSet.of("com.github.javaparser.ast.DocumentableNode"), coid.getInterfaces().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
172 assertEquals(ImmutableSet.of(), compilationUnit.getAllInterfaces().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
175 assertEquals(ImmutableSet.of("com.github.javaparser.ast.NamedNode", "com.github.javaparser.ast.body.AnnotableNode", "com.github.javaparser.ast.DocumentableNode"), coid.getAllInterfaces().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
181 assertEquals(ImmutableSet.of("com.github.javaparser.ast.Node", "java.lang.Object"), cu.getAllSuperClasses().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSet()));
208 assertEquals(ImmutableSet.of(), compilationUnit.getInterfaces().stream().map(i -> i.getQualifiedName()).collect(Collectors.toSe (…)
    [all...]
  /external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/
ArrayTypeTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 ImmutableList.of(new ResolvedTypeVariable(tpA)), typeSolver));
62 ImmutableList.of(new ReferenceTypeImpl(new ReflectionClassDeclaration(String.class, typeSolver), typeSolver)), typeSolver));
142 ImmutableList.of(OBJECT), typeSolver));
144 assertEquals(ImmutableList.of(OBJECT),
152 ImmutableList.of(OBJECT), typeSolver),
  /external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/typeinference/bounds/
SubtypeOfBoundTest.java 39 assertEquals(Optional.of(new ProperLowerBound(inferenceVariable, integerType)), bound.isProperLowerBound());
51 assertEquals(Optional.of(new ProperLowerBound(inferenceVariable, doubleType)), bound.isProperLowerBound());
63 assertEquals(Optional.of(new ProperUpperBound(inferenceVariable, objectType)), bound.isProperUpperBound());
70 // { ? <: Iterable<?>, ? <: Object, ? <: List<?> } describes a proper upper bound for each of ? and ?, along with a dependency between them.
82 assertEquals(Optional.of(new ProperUpperBound(alpha, iterableOfWildcard)), bound1.isProperUpperBound());
83 assertEquals(Optional.of(new ProperUpperBound(beta, objectType)), bound2.isProperUpperBound());
  /external/okhttp/okio/okio/src/main/java/okio/
ByteString.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34 * An immutable sequence of bytes.
36 * <p>Byte strings compare lexicographically as a sequence of <strong>unsigned</strong> bytes. That
37 * is, the byte string {@code ff} sorts after {@code 00}. This is counter to the sort order of the
42 * to the mutable byte string, violating the immutable guarantee of this class. For this reason a
52 public static final ByteString EMPTY = ByteString.of();
63 * Returns a new byte string containing a clone of the bytes of {@code data}.
65 public static ByteString of(byte... data) method in class:ByteString
74 public static ByteString of(byte[] data, int offset, int byteCount) { method in class:ByteString
    [all...]
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowNotificationManagerTest.java 74 notificationManager.createNotificationChannels(ImmutableList.of(channel1, channel2));
  /external/snakeyaml/src/test/java8/org/yaml/snakeyaml/issues/issue310/
OptionalTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 this.income = Optional.of(income);
134 expectedPerson.setSalary(Optional.of(s));
149 expectedPerson.setSalary(Optional.of(s));
  /frameworks/base/core/java/android/os/
UserHandle.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27 * Representation of a user on the device.
33 * @hide Range of uids allocated for a user.
46 /** @hide A user handle to indicate the current user of the device */
51 * to the caller's user instead of failing with a security exception */
56 * to the caller's user instead of failing with a security exception */
63 * @hide A user id constant to indicate the "owner" user of the device
71 * @hide A user handle to indicate the primary/owner user of the device
78 /** @hide A user id constant to indicate the "system" user of the device *
203 public static UserHandle of(@UserIdInt int userId) { method in class:UserHandle
    [all...]

Completed in 275 milliseconds

<<11121314151617181920>>