HomeSort by relevance Sort by last modified time
    Searched defs:of (Results 176 - 200 of 910) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/guava/guava-tests/test/com/google/common/math/
DoubleMathTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
537 ImmutableList.of(-0.0, 0.0, 1.0, 100.0, 10000.0, Double.MAX_VALUE);
540 Iterables.concat(FINITE_TOLERANCE_CANDIDATES, ImmutableList.of(Double.POSITIVE_INFINITY));
686 assertEquals(-1.375, DoubleMath.mean(ImmutableList.of(1.1, -2.2, 4.4, -8.8)), 1.0e-10);
687 assertEquals(1.1, DoubleMath.mean(ImmutableList.of(1.1)), 1.0e-10);
689 DoubleMath.mean(ImmutableList.<Double>of()); method
694 DoubleMath.mean(ImmutableList.of(Double.NaN));
699 DoubleMath.mean(ImmutableList.of(Double.POSITIVE_INFINITY));
707 assertEquals(-13.75, DoubleMath.mean(ImmutableList.of(11, -22, 44, -88)), 1.0e-10)
710 DoubleMath.mean(ImmutableList.<Integer>of()); method
721 DoubleMath.mean(ImmutableList.<Long>of()); method
    [all...]
  /external/guice/core/test/com/google/inject/
ProvisionListenerTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 import static com.google.common.collect.ImmutableList.of;
65 + " of " + Foo.class.getName(),
86 + " of " + Foo.class.getName(),
207 + " of " + Foo.class.getName(),
265 + " of " + Foo.class.getName(),
291 + " of " + Foo.class.getName(),
325 ImmutableSet.of(Key.get(Interface.class), Key.get(String.class, named("constant"))),
330 assertEquals(of(Key.get(Foo.class)), capturer.getAndClear()) method
334 assertEquals(of(Key.get(FooP.class), Key.get(Foo.class, named("pk"))), capturer.getAndClear()); method
336 assertEquals(of(Key.get(FooP.class), Key.get(Foo.class, named("pk"))), capturer.getAndClear()); method
340 assertEquals(of(Key.get(JitFoo2P.class), Key.get(JitFoo2.class)), capturer.getAndClear()); method
342 assertEquals(of(Key.get(JitFoo2P.class), Key.get(JitFoo2.class)), capturer.getAndClear()); method
346 assertEquals(of(Key.get(Foo.class, named("pi"))), capturer.getAndClear()); method
350 assertEquals(of(Key.get(Foo.class, named("cxtr"))), capturer.getAndClear()); method
354 assertEquals(of(Key.get(Foo.class)), capturer.getAndClear()); method
358 assertEquals(of(Key.get(Foo.class)), capturer.getAndClear()); method
    [all...]
  /external/guice/core/test/com/google/inject/spi/
InjectionPointTest.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
147 assertEquals(ImmutableList.<Dependency>of(), injectionPoint.getDependencies()); method
177 assertEquals(ImmutableSet.of(
189 assertEquals(ImmutableSet.of(
268 // effect the annotations of the subclasses.)
275 * us from injecting superclass methods in the case of javax.inject.Inject.
364 // of the superclass methods, since the superclass was package-private but this is public.
  /external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
BitSet.java 9 1. Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer.
12 notice, this list of conditions and the following disclaimer in the
14 3. The name of the author may not be used to endorse or promote products
19 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
76 public static BitSet of(int el) { method in class:BitSet
82 public static BitSet of(int a, int b) { method in class:BitSet
89 public static BitSet of(int a, int b, int c) { method in class:BitSet
97 public static BitSet of(int a, int b, int c, int d) { method in class:BitSet
    [all...]
  /external/caliper/caliper/src/main/java/com/google/caliper/util/
ShortDuration.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42 * represent durations of millions of years.
47 public static ShortDuration of(long duration, TimeUnit unit) { method in class:ShortDuration
58 public static ShortDuration of(BigDecimal duration, TimeUnit unit) { method in class:ShortDuration
76 return of(value, unit);
118 * Returns an instance of this type that represents the sum of this value and {@code
124 * Returns an instance of this type that represents the difference of this value an
    [all...]
  /external/guava/guava/src/com/google/common/collect/
ImmutableListMultimap.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37 * a <i>view</i> of a separate multimap which can still change, an instance of
41 * you easily make a "defensive copy" of a multimap provided to your class by
45 * it has no public or protected constructors. Thus, instances of this class
63 public static <K, V> ImmutableListMultimap<K, V> of() { method in class:ImmutableListMultimap
70 public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1) { method in class:ImmutableListMultimap
80 public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1, K k2, V v2) { method in class:ImmutableListMultimap
91 public static <K, V> ImmutableListMultimap<K, V> of( method in class:ImmutableListMultimap
104 public static <K, V> ImmutableListMultimap<K, V> of( method in class:ImmutableListMultimap
118 public static <K, V> ImmutableListMultimap<K, V> of( method in class:ImmutableListMultimap
    [all...]
ImmutableMap.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39 * <p>Unlike {@link Collections#unmodifiableMap}, which is a <i>view</i> of a
40 * separate map which can still change, an instance of {@code ImmutableMap}
43 * lets you easily make a "defensive copy" of a map provided to your class by a
49 * having your element type cache its own hash codes, and by making use of the
67 * and maintainability of your code.
69 public static <K, V> ImmutableMap<K, V> of() { method in class:ImmutableMap
70 return ImmutableBiMap.of();
77 * maintainability of your code
79 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { method in class:ImmutableMap
88 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { method in class:ImmutableMap
97 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap
108 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap
119 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap
    [all...]
ImmutableMultiset.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36 * <p>Its iterator orders elements according to the first appearance of the
38 * multiset contains multiple instances of an element, those instances are
56 new RegularImmutableMultiset<Object>(ImmutableMap.<Object, Integer>of(), 0);
62 public static <E> ImmutableMultiset<E> of() { method in class:ImmutableMultiset
73 public static <E> ImmutableMultiset<E> of(E element) { method in class:ImmutableMultiset
84 public static <E> ImmutableMultiset<E> of(E e1, E e2) { method in class:ImmutableMultiset
95 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3) { method in class:ImmutableMultiset
106 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4) method in class:ImmutableMultiset
117 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5) { method in class:ImmutableMultiset
128 public static <E> ImmutableMultiset<E> of( method in class:ImmutableMultiset
    [all...]
ImmutableRangeMap.java 5 * in compliance with the License. You may obtain a copy of the License at
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
33 * An immutable implementation of {@code RangeMap}, supporting all query operations efficiently.
46 ImmutableList.<Range<Comparable<?>>>of(), ImmutableList.of());
52 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of() { method in class:ImmutableRangeMap
59 public static <K extends Comparable<?>, V> ImmutableRangeMap<K, V> of( method in class:ImmutableRangeMap
61 return new ImmutableRangeMap<K, V>(ImmutableList.of(range), ImmutableList.of(value));
127 * @throws IllegalArgumentException if any of the ranges in {@code rangeMap} overlap with range
    [all...]
ImmutableRangeSet.java 5 * in compliance with the License. You may obtain a copy of the License at
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
37 * An efficient immutable implementation of a {@link RangeSet}.
47 new ImmutableRangeSet<Comparable<?>>(ImmutableList.<Range<Comparable<?>>>of());
50 new ImmutableRangeSet<Comparable<?>>(ImmutableList.of(Range.<Comparable<?>>all()));
56 public static <C extends Comparable> ImmutableRangeSet<C> of() { method in class:ImmutableRangeSet
70 * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}.
72 public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) { method in class:ImmutableRangeSet
75 return of();
79 return new ImmutableRangeSet<C>(ImmutableList.of(range))
    [all...]
ImmutableSortedMultiset.java 5 * in compliance with the License. You may obtain a copy of the License at
10 * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
33 * are ordered by an explicit comparator, while others follow the natural sort ordering of their
36 * <p>Unlike {@link Multisets#unmodifiableSortedMultiset}, which is a <i>view</i> of a separate
37 * collection that can still change, an instance of {@code ImmutableSortedMultiset} contains its
39 * final} multisets ("constant multisets") and also lets you easily make a "defensive copy" of a
58 * <p>With natural ordering of elements, the following relation determines whether two elements are
71 * protected constructors. Thus, instances of this type are guaranteed to be immutable.
95 public static <E> ImmutableSortedMultiset<E> of() { method in class:ImmutableSortedMultiset
102 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E element) method in class:ImmutableSortedMultiset
117 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2) { method in class:ImmutableSortedMultiset
128 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of(E e1, E e2, E e3) { method in class:ImmutableSortedMultiset
139 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( method in class:ImmutableSortedMultiset
151 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( method in class:ImmutableSortedMultiset
163 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> of( method in class:ImmutableSortedMultiset
    [all...]
ImmutableTable.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
36 * it has no public or protected constructors. Thus, instances of this class are
51 ImmutableList.<Cell<Object, Object, Object>>of(),
52 ImmutableSet.of(), ImmutableSet.of());
56 public static <R, C, V> ImmutableTable<R, C, V> of() { method in class:ImmutableTable
61 public static <R, C, V> ImmutableTable<R, C, V> of(R rowKey, method in class:ImmutableTable
67 * Returns an immutable copy of the provided table.
69 * <p>The {@link Table#cellSet()} iteration order of the provided tabl
    [all...]
  /external/guava/guava/src/com/google/common/reflect/
TypeToken.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
61 * TypeToken.of(method.getGenericReturnType())}.
66 * of the {@code listType()} method signature; while {@code <String>} is lost in erasure:
103 * Constructs a new type token of {@code T}.
118 "If you do need to create a TypeToken of a type variable, " +
119 "please use TypeToken.of() instead.", runtimeType);
123 * Constructs a new type token of {@code T} while resolving free type variables in the context of
144 this.runtimeType = of(declaringClass).resolveType(captured).runtimeType
153 public static <T> TypeToken<T> of(Class<T> type) { method in class:TypeToken
158 public static TypeToken<?> of(Type type) { method in class:TypeToken
    [all...]
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableMap.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
33 * GWT emulation of {@link ImmutableMap}. For non sorted maps, it is a thin
47 public static <K, V> ImmutableMap<K, V> of() { method in class:ImmutableMap
48 return ImmutableBiMap.of();
51 public static <K, V> ImmutableMap<K, V> of(K k1, V v1) { method in class:ImmutableMap
52 return ImmutableBiMap.of(k1, v1);
55 public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) { method in class:ImmutableMap
59 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap
65 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap
71 public static <K, V> ImmutableMap<K, V> of( method in class:ImmutableMap
    [all...]
ImmutableMultiset.java 6 * You may obtain a copy of the License at
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35 * <p>Its iterator orders elements according to the first appearance of the
37 * multiset contains multiple instances of an element, those instances are
55 new RegularImmutableMultiset<Object>(ImmutableMap.<Object, Integer>of(), 0);
61 public static <E> ImmutableMultiset<E> of() { method in class:ImmutableMultiset
72 public static <E> ImmutableMultiset<E> of(E element) { method in class:ImmutableMultiset
83 public static <E> ImmutableMultiset<E> of(E e1, E e2) { method in class:ImmutableMultiset
94 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3) { method in class:ImmutableMultiset
105 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4) method in class:ImmutableMultiset
116 public static <E> ImmutableMultiset<E> of(E e1, E e2, E e3, E e4, E e5) { method in class:ImmutableMultiset
127 public static <E> ImmutableMultiset<E> of( method in class:ImmutableMultiset
    [all...]
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());

Completed in 1432 milliseconds

1 2 3 4 5 6 78 91011>>