HomeSort by relevance Sort by last modified time
    Searched refs:copyOf (Results 26 - 50 of 242) sorted by null

12 3 4 5 6 7 8 910

  /external/guava/guava-tests/test/com/google/common/collect/
ImmutableBiMapTest.java 416 = ImmutableBiMap.copyOf(Collections.<String, Integer>emptyMap());
418 assertSame(copy, ImmutableBiMap.copyOf(copy));
424 = ImmutableBiMap.copyOf(Collections.singletonMap("one", 1));
426 assertSame(copy, ImmutableBiMap.copyOf(copy));
435 ImmutableBiMap<String, Integer> copy = ImmutableBiMap.copyOf(original);
437 assertSame(copy, ImmutableBiMap.copyOf(copy));
450 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(
457 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(
481 ImmutableBiMap.copyOf(map);
492 ImmutableBiMap<String, Integer> bimap = ImmutableBiMap.copyOf(
    [all...]
ImmutableMultimapTest.java 88 = ImmutableMultimap.copyOf(setMultimap);
89 assertSame("copyOf(ImmutableSetMultimap) should not create a new instance",
95 = ImmutableMultimap.copyOf(listMultimap);
96 assertSame("copyOf(ImmutableListMultimap) should not create a new instance",
TransformedImmutableListTest.java 40 ImmutableList.copyOf(elements)) {
ImmutableSetCollectionTest.java 72 Set<String> set = ImmutableSet.copyOf(elements);
104 SortedSet<String> set = ImmutableSortedSet.copyOf(elements);
140 ImmutableSortedSet.copyOf(list).headSet("zzy"));
155 ImmutableSortedSet.copyOf(list).tailSet("\0\0"));
171 ImmutableSortedSet.copyOf(list).subSet("\0\0", "zzy"));
  /external/guava/guava/src/com/google/common/collect/
ImmutableMultiset.java 130 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) {
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(
199 return copyOf(Arrays.asList(elements));
232 * {@code ImmutableMultiset.copyOf(Arrays.asList(2, 3, 1, 3).iterator())
    [all...]
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...]
ImmutableSet.java 240 public static <E> ImmutableSet<E> copyOf(E[] elements) {
259 * ImmutableSet.copyOf(s)} returns an {@code ImmutableSet<String>} containing
270 public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
272 ? copyOf(Collections2.cast(elements))
273 : copyOf(elements.iterator());
283 public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
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(Collection<? extends E> elements)
    [all...]
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);
CompoundOrdering.java 37 this.comparators = ImmutableList.copyOf(comparators);
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
  /external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableList.java 146 public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) {
149 ? copyOf((Collection<? extends E>) elements)
150 : copyOf(elements.iterator());
153 public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) {
157 public static <E> ImmutableList<E> copyOf(Collection<? extends E> elements) {
170 public static <E> ImmutableList<E> copyOf(E[] elements) {
172 return copyOf(Arrays.asList(elements));
315 return copyOf(contents);
ImmutableSortedSet.java 120 return copyOf(elements);
139 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(
144 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(
149 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(
154 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(
159 public static <E> ImmutableSortedSet<E> copyOf(
165 public static <E> ImmutableSortedSet<E> copyOf(
171 public static <E> ImmutableSortedSet<E> copyOf(
ImmutableSetMultimap.java 273 return copyOf(builderMultimap, valueComparator);
291 public static <K, V> ImmutableSetMultimap<K, V> copyOf(
293 return copyOf(multimap, null);
296 private static <K, V> ImmutableSetMultimap<K, V> copyOf(
321 ? ImmutableSet.copyOf(values)
322 : ImmutableSortedSet.copyOf(valueComparator, values);
420 ? (entries = ImmutableSet.copyOf(super.entries()))
ImmutableBiMap.java 92 public static <K, V> ImmutableBiMap<K, V> copyOf(
104 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
  /external/guava/guava/src/com/google/common/cache/
AbstractLoadingCache.java 66 return ImmutableMap.copyOf(result);
  /external/guava/guava-gwt/src/com/google/common/collect/
ImmutableAsList_CustomFieldSerializer.java 45 ImmutableList<Object> asImmutableList = ImmutableList.copyOf(elements);
RegularImmutableSortedSet_CustomFieldSerializer.java 54 * ImmutableSortedSet.copyOf always return a RegularImmutableSortedSet back.
57 ImmutableSortedSet.copyOf(comparator, elements);
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
MutableFrameFormat.java 53 mDimensions = (dimensions == null) ? null : Arrays.copyOf(dimensions, dimensions.length);
  /packages/apps/Tag/src/com/android/apps/tag/message/
ParsedNdefMessage.java 38 mRecords = ImmutableList.copyOf(records);
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
UIProviderValidator.java 81 if (isValidProjection(requestedProjection, ImmutableSet.copyOf(allColumnProjection))) {
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ArraysTest.java     [all...]
  /libcore/luni/src/main/java/java/util/concurrent/atomic/
AtomicReferenceArray.java 76 this.array = Arrays.copyOf(array, array.length, Object[].class);
206 a = Arrays.copyOf((Object[])a, Array.getLength(a), Object[].class);
  /developers/build/prebuilts/gradle/CardEmulation/CardEmulationSample/src/main/java/com/example/android/cardemulation/
CardService.java 165 byte[] result = Arrays.copyOf(first, totalLength);
  /developers/samples/android/connectivity/nfc/CardEmulation/CardEmulationSample/src/main/java/com/example/android/cardemulation/
CardService.java 165 byte[] result = Arrays.copyOf(first, totalLength);

Completed in 1357 milliseconds

12 3 4 5 6 7 8 910