Searched refs:copyOf (Results 26 - 50 of 151) sorted by relevance

1234567

/external/guava/guava/src/com/google/common/collect/
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 DImmutableList.java210 * {@link #copyOf(Collection)}; otherwise, it behaves exactly as {@code
211 * copyOf(elements.iterator()}.
215 public static <E> ImmutableList<E> copyOf(Iterable<? extends E> elements) { method in class:ImmutableList
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) { method in class:ImmutableList
255 public static <E> ImmutableList<E> copyOf(Iterator<? extends E> elements) { method in class:ImmutableList
265 public static <E> ImmutableList<E> copyOf(E[] elements) { method in class:ImmutableList
516 return copyOf(element
[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 DCompoundOrdering.java37 this.comparators = ImmutableList.copyOf(comparators);
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
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
H A DFormOptions.java56 mHiddenFields = EnumSet.copyOf(builder.mHiddenFields);
57 mReadonlyFields = EnumSet.copyOf(builder.mReadonlyFields);
58 mRequiredFields = EnumSet.copyOf(builder.mRequiredFields);
/external/smali/util/src/main/java/org/jf/util/
H A DImmutableConverter.java72 return ImmutableList.copyOf(new Iterator<ImmutableItem>() {
103 return ImmutableSet.copyOf(new Iterator<ImmutableItem>() {
137 return ImmutableSortedSet.copyOf(comparator, new Iterator<ImmutableItem>() {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
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);
H A DImmutableSortedSet.java120 return copyOf(elements);
139 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
144 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
149 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
154 public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
159 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
165 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
171 public static <E> ImmutableSortedSet<E> copyOf( method in class:ImmutableSortedSet
H A DImmutableSetMultimap.java273 return copyOf(builderMultimap, valueComparator);
291 public static <K, V> ImmutableSetMultimap<K, V> copyOf( method in class:ImmutableSetMultimap
293 return copyOf(multimap, null);
296 private static <K, V> ImmutableSetMultimap<K, V> copyOf( method in class:ImmutableSetMultimap
321 ? ImmutableSet.copyOf(values)
322 : ImmutableSortedSet.copyOf(valueComparator, values);
420 ? (entries = ImmutableSet.copyOf(super.entries()))
H A DImmutableBiMap.java92 public static <K, V> ImmutableBiMap<K, V> copyOf( method in class:ImmutableBiMap
104 ImmutableMap<K, V> immutableMap = ImmutableMap.copyOf(map);
/external/guava/guava-tests/test/com/google/common/collect/
H A DImmutableMultimapTest.java88 = 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",
H A DTransformedImmutableListTest.java40 ImmutableList.copyOf(elements)) {
H A DImmutableSetCollectionTest.java72 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/cache/
H A DAbstractLoadingCache.java66 return ImmutableMap.copyOf(result);
/external/guava/guava-gwt/src/com/google/common/collect/
H A DImmutableAsList_CustomFieldSerializer.java45 ImmutableList<Object> asImmutableList = ImmutableList.copyOf(elements);
H A DRegularImmutableSortedSet_CustomFieldSerializer.java54 * ImmutableSortedSet.copyOf always return a RegularImmutableSortedSet back.
57 ImmutableSortedSet.copyOf(comparator, elements);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/immutable/instruction/
H A DImmutableArrayPayload.java54 this.arrayElements = arrayElements==null ? ImmutableList.<Number>of() : ImmutableList.copyOf(arrayElements);
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
H A DClientCertLookupTable.java31 newChain[i] = Arrays.copyOf(certChain[i], certChain[i].length);
/external/chromium_org/third_party/closure_compiler/runner/src/org/chromium/closure/compiler/
H A DChromeCodingConvention.java33 indirectlyDeclaredProperties = ImmutableSet.copyOf(props);
/external/guava/guava-testlib/src/com/google/common/testing/
H A DEqualsTester.java90 equalityGroups.add(ImmutableList.copyOf(equalityGroup));
/external/owasp/sanitizer/src/main/org/owasp/html/
H A DAttributePolicy.java115 this.policies = ImmutableList.copyOf(policies);
/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;

Completed in 3205 milliseconds

1234567