HomeSort by relevance Sort by last modified time
    Searched defs:copyOf (Results 1 - 25 of 53) sorted by null

1 2 3

  /external/guava/guava/src/com/google/common/collect/
ImmutableSortedMultisetFauxverideShim.java 26 * Set<Object> sorted = ImmutableSortedMultiset.copyOf(objects);
148 * {@link ImmutableSortedMultiset#copyOf(Comparable[])}.</b>
151 public static <E> ImmutableSortedMultiset<E> copyOf(E[] elements) {
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.
ImmutableSortedSetFauxverideShim.java 28 * Set<Object> sorted = ImmutableSortedSet.copyOf(objects);
143 * ImmutableSortedSet#copyOf(Comparable[])}.</b>
145 @Deprecated public static <E> ImmutableSortedSet<E> copyOf(E[] elements) {
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
ImmutableClassToInstanceMap.java 117 public static <B, S extends B> ImmutableClassToInstanceMap<B> copyOf(
ImmutableBiMap.java 193 public static <K, V> ImmutableBiMap<K, V> copyOf(
209 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
ImmutableList.java 210 * {@link #copyOf(Collection)}; otherwise, it behaves exactly as {@code
211 * copyOf(elements.iterator()}.
215 public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
218 ? copyOf(Collections2.cast(elements))
219 : copyOf(elements.iterator());
230 * ImmutableList.copyOf(list)} returns an {@code ImmutableList<String>}
241 public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) {
255 public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
265 public static <E> ImmutableList<E> copyOf(E[] elements) {
516 return copyOf(elements)
    [all...]
ImmutableListMultimap.java 237 public static <K, V> ImmutableListMultimap<K, V> copyOf(
258 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue());
365 builder.put(key, ImmutableList.copyOf(array));
ImmutableMap.java 262 public static <K, V> ImmutableMap<K, V> copyOf(
265 // TODO(user): Make ImmutableMap.copyOf(immutableBiMap) call copyOf()
ImmutableSetMultimap.java 278 return copyOf(builderMultimap, valueComparator);
296 public static <K, V> ImmutableSetMultimap<K, V> copyOf(
298 return copyOf(multimap, null);
301 private static <K, V> ImmutableSetMultimap<K, V> copyOf(
326 ? ImmutableSet.copyOf(values)
327 : ImmutableSortedSet.copyOf(valueComparator, values);
425 ? (entries = ImmutableSet.copyOf(super.entries()))
462 ImmutableSet<Object> valueSet = ImmutableSet.copyOf(array);
ImmutableSortedMap.java 178 public static <K, V> ImmutableSortedMap<K, V> copyOf(
199 public static <K, V> ImmutableSortedMap<K, V> copyOf(
265 return new ImmutableSortedMap<K, V>(ImmutableList.copyOf(list), comparator);
409 ImmutableList.copyOf(entries), comparator);
ImmutableSortedMultiset.java 108 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) {
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) {
205 return copyOf(naturalOrder, elements)
    [all...]
ImmutableSortedSet.java 138 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(
210 return copyOf(Ordering.natural(), Arrays.asList(elements));
223 * ImmutableSortedSet.copyOf(s)} returns an {@code ImmutableSortedSet<String>}
239 public static <E> ImmutableSortedSet<E> copyOf(
245 return copyOf(naturalOrder, elements)
    [all...]
ImmutableTable.java 71 public static final <R, C, V> ImmutableTable<R, C, V> copyOf(
  /external/guava/guava-testlib/src/com/google/common/testing/
EqualsTester.java 90 equalityGroups.add(ImmutableList.copyOf(equalityGroup));
EquivalenceTester.java 102 items.addAll(ImmutableList.copyOf(group));
RelationshipTester.java 45 groups.add(ImmutableList.copyOf(group));
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableBiMap.java 92 public static <K, V> ImmutableBiMap<K, V> copyOf(
104 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
ImmutableListMultimap.java 232 public static <K, V> ImmutableListMultimap<K, V> copyOf(
253 ImmutableList<V> list = ImmutableList.copyOf(entry.getValue());
ImmutableSet.java 88 return copyOf(all.iterator());
93 return copyOf(elements);
96 public static <E> ImmutableSet<E> copyOf(E[] elements) {
108 public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
110 return copyOf(iterable);
113 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
120 return copyOf(elements.iterator());
123 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
218 return copyOf(contents.iterator());
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/
Arrays.java 566 public static byte[] copyOf(byte[] data, int newLength)
582 public static char[] copyOf(char[] data, int newLength)
598 public static int[] copyOf(int[] data, int newLength)
614 public static long[] copyOf(long[] data, int newLength)
630 public static BigInteger[] copyOf(BigInteger[] data, int newLength)
  /external/guava/guava-tests/test/com/google/common/collect/
ImmutableSetTest.java 73 @Override protected Set<String> copyOf(String[] elements) {
74 return ImmutableSet.copyOf(elements);
77 @Override protected Set<String> copyOf(Collection<String> elements) {
78 return ImmutableSet.copyOf(elements);
81 @Override protected Set<String> copyOf(Iterable<String> elements) {
82 return ImmutableSet.copyOf(elements);
85 @Override protected Set<String> copyOf(Iterator<String> elements) {
86 return ImmutableSet.copyOf(elements);
90 ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a"));
167 ImmutableSet<String> copy = ImmutableSet.copyOf(sortedSet)
    [all...]
ConcurrentHashMultisetTest.java 260 assertEquals(ImmutableMultiset.copyOf(elements), multiset);
290 assertEquals(ImmutableSet.copyOf(elements), ImmutableSet.copyOf(multiset.entryIterator()));
  /external/guava/guava/src/com/google/common/primitives/
Booleans.java 221 ? copyOf(array, minLength + padding)
225 // Arrays.copyOf() requires Java 6
226 private static boolean[] copyOf(boolean[] original, int length) {
Bytes.java 201 ? copyOf(array, minLength + padding)
205 // Arrays.copyOf() requires Java 6
206 private static byte[] copyOf(byte[] original, int length) {
Chars.java 339 ? copyOf(array, minLength + padding)
343 // Arrays.copyOf() requires Java 6
344 private static char[] copyOf(char[] original, int length) {
Doubles.java 278 ? copyOf(array, minLength + padding)
282 // Arrays.copyOf() requires Java 6
283 private static double[] copyOf(double[] original, int length) {

Completed in 296 milliseconds

1 2 3