Searched defs:copyOf (Results 1 - 25 of 49) sorted by relevance

12

/external/guava/guava/src/com/google/common/collect/
H A DImmutableSortedMultisetFauxverideShim.java26 * Set<Object> sorted = ImmutableSortedMultiset.copyOf(objects);
148 * {@link ImmutableSortedMultiset#copyOf(Comparable[])}.</b>
151 public static <E> ImmutableSortedMultiset<E> copyOf(E[] elements) { method in class:ImmutableSortedMultisetFauxverideShim
156 * We would like to include an unsupported "<E> copyOf(Iterable<E>)" here, providing only the
157 * properly typed "<E extends Comparable<E>> copyOf(Iterable<E>)" in ImmutableSortedMultiset (and
162 * copyOf() here, and the definition in ImmutableSortedMultiset matches that in
165 * The result is that ImmutableSortedMultiset.copyOf() may be called on non-Comparable elements.
H A DImmutableSortedSetFauxverideShim.java28 * Set<Object> sorted = ImmutableSortedSet.copyOf(objects);
143 * ImmutableSortedSet#copyOf(Comparable[])}.</b>
145 @Deprecated public static <E> ImmutableSortedSet<E> copyOf(E[] elements) { method in class:ImmutableSortedSetFauxverideShim
150 * We would like to include an unsupported "<E> copyOf(Iterable<E>)" here,
152 * "<E extends Comparable<E>> copyOf(Iterable<E>)" in ImmutableSortedSet (and
158 * the JLS similarly, there is no definition of copyOf() here, and the
161 * The result is that ImmutableSortedSet.copyOf() may be called on
H A DImmutableClassToInstanceMap.java117 public static <B, S extends B> ImmutableClassToInstanceMap<B> copyOf( method in class:ImmutableClassToInstanceMap
H A DImmutableTable.java71 public static final <R, C, V> ImmutableTable<R, C, V> copyOf( method in class:ImmutableTable
H A DImmutableBiMap.java193 public static <K, V> ImmutableBiMap<K, V> copyOf( method in class:ImmutableBiMap
209 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
H A DImmutableListMultimap.java237 public static <K, V> ImmutableListMultimap<K, V> copyOf( method in class:ImmutableListMultimap
258 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue());
365 builder.put(key, ImmutableList.copyOf(array));
H A DImmutableMap.java262 public static <K, V> ImmutableMap<K, V> copyOf( method in class:ImmutableMap
265 // TODO(user): Make ImmutableMap.copyOf(immutableBiMap) call copyOf()
H A DImmutableMultiset.java130 return copyOf(all);
141 * @deprecated use {@link #copyOf(Object[])}. <b>This method is scheduled for
147 return copyOf(Arrays.asList(elements));
154 * example, {@code ImmutableMultiset.copyOf([2, 3, 1, 3])} yields a multiset
160 public static <E> ImmutableMultiset<E> copyOf(E[] elements) { method in class:ImmutableMultiset
161 return copyOf(Arrays.asList(elements));
168 * example, {@code ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3))} yields
181 public static <E> ImmutableMultiset<E> copyOf( method in class:ImmutableMultiset
199 return copyOf(Arrays.asList(elements));
232 * {@code ImmutableMultiset.copyOf(Array
237 public static <E> ImmutableMultiset<E> copyOf( method in class:ImmutableMultiset
[all...]
H A DImmutableSet.java240 public static <E> ImmutableSet<E> copyOf(E[] elements) { method in class:ImmutableSet
259 * ImmutableSet.copyOf(s)} returns an {@code ImmutableSet<String>} containing
270 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) { method in class:ImmutableSet
272 ? copyOf(Collections2.cast(elements))
273 : copyOf(elements.iterator());
283 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) { method in class:ImmutableSet
296 * ImmutableSet.copyOf(s)} returns an {@code ImmutableSet<String>} containing
301 * <p><b>Note:</b> Despite what the method name suggests, {@code copyOf} will
309 * <li>{@code ImmutableSet.copyOf()} is idempotent with respect to pointer
320 public static <E> ImmutableSet<E> copyOf(Collectio method in class:ImmutableSet
[all...]
H A DImmutableSetMultimap.java278 return copyOf(builderMultimap, valueComparator);
296 public static <K, V> ImmutableSetMultimap<K, V> copyOf( method in class:ImmutableSetMultimap
298 return copyOf(multimap, null);
301 private static <K, V> ImmutableSetMultimap<K, V> copyOf( method in class:ImmutableSetMultimap
326 ? ImmutableSet.copyOf(values)
327 : ImmutableSortedSet.copyOf(valueComparator, values);
425 ? (entries = ImmutableSet.copyOf(super.entries()))
462 ImmutableSet<Object> valueSet = ImmutableSet.copyOf(array);
H A DImmutableSortedMultiset.java108 return copyOf(Ordering.natural(), Arrays.asList(e1, e2));
119 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3));
131 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4));
143 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5));
165 return copyOf(Ordering.natural(), all);
174 public static <E extends Comparable<? super E>> ImmutableSortedMultiset<E> copyOf(E[] elements) { method in class:ImmutableSortedMultiset
175 return copyOf(Ordering.natural(), Arrays.asList(elements));
185 * ImmutableSortedMultiset.copyOf(s)} returns an {@code ImmutableSortedMultiset<String>}
200 public static <E> ImmutableSortedMultiset<E> copyOf(Iterable<? extends E> elements) { method in class:ImmutableSortedMultiset
205 return copyOf(naturalOrde
218 public static <E> ImmutableSortedMultiset<E> copyOf(Iterator<? extends E> elements) { method in class:ImmutableSortedMultiset
232 public static <E> ImmutableSortedMultiset<E> copyOf( method in class:ImmutableSortedMultiset
248 public static <E> ImmutableSortedMultiset<E> copyOf( method in class:ImmutableSortedMultiset
[all...]
H A DImmutableSortedSet.java138 return copyOf(Ordering.natural(), Arrays.asList(e1, e2));
151 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3));
164 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4));
177 return copyOf(Ordering.natural(), Arrays.asList(e1, e2, e3, e4, e5));
195 return copyOf(Ordering.natural(), all);
208 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
210 return copyOf(Ordering.natural(), Arrays.asList(elements));
223 * ImmutableSortedSet.copyOf(s)} returns an {@code ImmutableSortedSet<String>}
239 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
245 return copyOf(naturalOrde
277 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
297 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
315 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
334 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
358 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DImmutableSet.java88 return copyOf(all.iterator());
93 return copyOf(elements);
96 public static <E> ImmutableSet<E> copyOf(E[] elements) { method in class:ImmutableSet
108 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) { method in class:ImmutableSet
110 return copyOf(iterable);
113 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) { method in class:ImmutableSet
120 return copyOf(elements.iterator());
123 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) { method in class:ImmutableSet
218 return copyOf(contents.iterator());
H A DImmutableBiMap.java92 public static <K, V> ImmutableBiMap<K, V> copyOf( method in class:ImmutableBiMap
104 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
H A DImmutableListMultimap.java232 public static <K, V> ImmutableListMultimap<K, V> copyOf( method in class:ImmutableListMultimap
253 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue());
H A DImmutableList.java146 public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) { method in class:ImmutableList
149 ? copyOf((Collection<? extends E>) elements)
150 : copyOf(elements.iterator());
153 public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) { method in class:ImmutableList
157 public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) { method in class:ImmutableList
170 public static <E> ImmutableList<E> copyOf(E[] elements) { method in class:ImmutableList
172 return copyOf(Arrays.asList(elements));
315 return copyOf(contents);
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
H A DArrays.java566 public static byte[] copyOf(byte[] data, int newLength) method in class:Arrays
582 public static char[] copyOf(char[] data, int newLength) method in class:Arrays
598 public static int[] copyOf(int[] data, int newLength) method in class:Arrays
614 public static long[] copyOf(long[] data, int newLength) method in class:Arrays
630 public static BigInteger[] copyOf(BigInteger[] data, int newLength) method in class:Arrays
/external/chromium_org/third_party/angle/src/compiler/translator/
H A DSymbolTable.cpp95 TSymbol::TSymbol(const TSymbol &copyOf) argument
97 name = NewPoolTString(copyOf.name->c_str());
98 uniqueId = copyOf.uniqueId;
/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableSetTest.java73 @Override protected Set<String> copyOf(String[] elements) { method in class:ImmutableSetTest
74 return ImmutableSet.copyOf(elements);
77 @Override protected Set<String> copyOf(Collection<String> elements) { method in class:ImmutableSetTest
78 return ImmutableSet.copyOf(elements);
81 @Override protected Set<String> copyOf(Iterable<String> elements) { method in class:ImmutableSetTest
82 return ImmutableSet.copyOf(elements);
85 @Override protected Set<String> copyOf(Iterator<String> elements) { method in class:ImmutableSetTest
86 return ImmutableSet.copyOf(elements);
90 ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a"));
167 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSe
[all...]
/external/guava/guava/src/com/google/common/primitives/
H A DBooleans.java221 ? copyOf(array, minLength + padding)
225 // Arrays.copyOf() requires Java 6
226 private static boolean[] copyOf(boolean[] original, int length) { method in class:Booleans
H A DBytes.java201 ? copyOf(array, minLength + padding)
205 // Arrays.copyOf() requires Java 6
206 private static byte[] copyOf(byte[] original, int length) { method in class:Bytes
H A DChars.java339 ? copyOf(array, minLength + padding)
343 // Arrays.copyOf() requires Java 6
344 private static char[] copyOf(char[] original, int length) { method in class:Chars
H A DDoubles.java278 ? copyOf(array, minLength + padding)
282 // Arrays.copyOf() requires Java 6
283 private static double[] copyOf(double[] original, int length) { method in class:Doubles
H A DFloats.java275 ? copyOf(array, minLength + padding)
279 // Arrays.copyOf() requires Java 6
280 private static float[] copyOf(float[] original, int length) { method in class:Floats
H A DShorts.java345 ? copyOf(array, minLength + padding)
349 // Arrays.copyOf() requires Java 6
350 private static short[] copyOf(short[] original, int length) { method in class:Shorts

Completed in 9053 milliseconds

12