OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:copyOf
(Results
1 - 25
of
398
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/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
26
* Set<Object> sorted = ImmutableSortedSet.
copyOf
(objects);
140
* ImmutableSortedSet#
copyOf
(Comparable[])}.</b>
142
@Deprecated public static <E> ImmutableSortedSet<E>
copyOf
(E[] elements) {
147
* We would like to include an unsupported "<E>
copyOf
(Iterable<E>)" here,
149
* "<E extends Comparable<E>>
copyOf
(Iterable<E>)" in ImmutableSortedSet (and
155
* the JLS similarly, there is no definition of
copyOf
() here, and the
158
* The result is that ImmutableSortedSet.
copyOf
() may be called on
ImmutableList.java
219
* {@link #
copyOf
(Collection)}; otherwise, it behaves exactly as {@code
220
*
copyOf
(elements.iterator()}.
224
public static <E> ImmutableList<E>
copyOf
(Iterable<? extends E> elements) {
227
?
copyOf
((Collection<? extends E>) elements)
228
:
copyOf
(elements.iterator());
239
* ImmutableList.
copyOf
(list)} returns an {@code ImmutableList<String>}
250
public static <E> ImmutableList<E>
copyOf
(Collection<? extends E> elements) {
266
public static <E> ImmutableList<E>
copyOf
(Iterator<? extends E> elements) {
288
public static <E> ImmutableList<E>
copyOf
(E[] elements) {
592
return
copyOf
(elements)
[
all
...]
ImmutableBiMap.java
190
public static <K, V> ImmutableBiMap<K, V>
copyOf
(
ImmutableClassToInstanceMap.java
124
public static <B, S extends B> ImmutableClassToInstanceMap<B>
copyOf
(
/external/caliper/caliper/src/main/java/com/google/caliper/bridge/
VmPropertiesLogMessage.java
37
this(ImmutableMap.
copyOf
(Maps.fromProperties(System.getProperties())));
/external/guava/guava-testlib/src/com/google/common/testing/
EqualsTester.java
97
equalityGroups.add(ImmutableList.
copyOf
(equalityGroup));
EquivalenceTester.java
90
items.addAll(ImmutableList.
copyOf
(group));
RelationshipTester.java
68
groups.add(ImmutableList.
copyOf
(group));
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
ImmutableBiMap.java
91
public static <K, V> ImmutableBiMap<K, V>
copyOf
(
103
ImmutableMap<K, V> immutableMap = ImmutableMap.
copyOf
(map);
ImmutableSet.java
79
return
copyOf
(all.iterator());
82
public static <E> ImmutableSet<E>
copyOf
(E[] elements) {
94
public static <E> ImmutableSet<E>
copyOf
(Collection<? extends E> elements) {
96
return
copyOf
(iterable);
99
public static <E> ImmutableSet<E>
copyOf
(Iterable<? extends E> elements) {
105
return
copyOf
(elements.iterator());
108
public static <E> ImmutableSet<E>
copyOf
(Iterator<? extends E> elements) {
203
return
copyOf
(contents.iterator());
ImmutableList.java
126
public static <E> ImmutableList<E>
copyOf
(Iterable<? extends E> elements) {
129
?
copyOf
((Collection<? extends E>) elements)
130
:
copyOf
(elements.iterator());
133
public static <E> ImmutableList<E>
copyOf
(Iterator<? extends E> elements) {
137
public static <E> ImmutableList<E>
copyOf
(Collection<? extends E> elements) {
150
public static <E> ImmutableList<E>
copyOf
(E[] elements) {
152
return
copyOf
(Arrays.asList(elements));
310
return
copyOf
(contents);
ImmutableListMultimap.java
235
public static <K, V> ImmutableListMultimap<K, V>
copyOf
(
256
ImmutableList<V> list = ImmutableList.
copyOf
(entry.getValue());
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
ImmutableSetTest.java
71
@Override protected Set<String>
copyOf
(String[] elements) {
72
return ImmutableSet.
copyOf
(elements);
75
@Override protected Set<String>
copyOf
(Collection<String> elements) {
76
return ImmutableSet.
copyOf
(elements);
79
@Override protected Set<String>
copyOf
(Iterable<String> elements) {
80
return ImmutableSet.
copyOf
(elements);
83
@Override protected Set<String>
copyOf
(Iterator<String> elements) {
84
return ImmutableSet.
copyOf
(elements);
88
ImmutableSet<String> set = ImmutableSet.
copyOf
(Lists.newArrayList("a", "a"));
117
ImmutableSet<String> copy = ImmutableSet.
copyOf
(sortedSet)
[
all
...]
/frameworks/base/core/java/com/android/internal/util/
CollectionUtils.java
269
public static @NonNull <T> List<T>
copyOf
(@Nullable List<T> cur) {
276
public static @NonNull <T> Set<T>
copyOf
(@Nullable Set<T> cur) {
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
FolderList.java
22
// Private to reinforce the
copyOf
() API, which makes it more clear that creating a FolderList
28
folders = ImmutableList.
copyOf
(in);
33
folders = ImmutableList.
copyOf
(in.createTypedArrayList(Folder.CREATOR));
56
* list-copy overhead of {@link #
copyOf
(Collection)} + {@link #toBlob()}.
82
public static FolderList
copyOf
(Collection<Folder> in) {
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
MultidimensionalCounter.java
131
return /* Arrays.*/
copyOf
(counter, dimension); // Java 1.5 does not support Arrays.
copyOf
()
166
this.size = /* Arrays.*/
copyOf
(size, dimension); // Java 1.5 does not support Arrays.
copyOf
()
288
return /* Arrays.*/
copyOf
(size, dimension); // Java 1.5 does not support Arrays.
copyOf
()
304
* Java 1.5 does not support Arrays.
copyOf
()
310
private int[]
copyOf
(int[] source, int newLen) {
/external/caliper/caliper/src/main/java/com/google/caliper/worker/
AllocationStats.java
57
ImmutableMultiset.
copyOf
(allocations));
/external/guava/guava-tests/test/com/google/common/collect/
ImmutableSetTest.java
121
@Override protected Set<String>
copyOf
(String[] elements) {
122
return ImmutableSet.
copyOf
(elements);
125
@Override protected Set<String>
copyOf
(Collection<String> elements) {
126
return ImmutableSet.
copyOf
(elements);
129
@Override protected Set<String>
copyOf
(Iterable<String> elements) {
130
return ImmutableSet.
copyOf
(elements);
133
@Override protected Set<String>
copyOf
(Iterator<String> elements) {
134
return ImmutableSet.
copyOf
(elements);
138
ImmutableSet<String> set = ImmutableSet.
copyOf
(Lists.newArrayList("a", "a"));
209
ImmutableSet<String> copy = ImmutableSet.
copyOf
(sortedSet)
[
all
...]
/external/guava/guava-tests/test/com/google/common/io/
FileTreeTraverserTest.java
91
assertEquals(ImmutableSet.
copyOf
(files),
92
ImmutableSet.
copyOf
(Files.fileTreeTraverser().children(dir)));
/external/guice/core/test/com/google/inject/
GenericInjectionTest.java
151
assertEquals(ImmutableSet.of(1, 2), ImmutableSet.
copyOf
(parameterizedDeps.values));
/frameworks/support/compat/tests/java/android/support/v4/util/
ArrayMapCompatTest.java
53
Map.Entry<String, String> firstEntry =
copyOf
(iterator.next());
57
Map.Entry<String, String> secondEntry =
copyOf
(iterator.next());
73
private static <K, V> Map.Entry<K, V>
copyOf
(Map.Entry<K, V> entry) {
/libcore/ojluni/src/main/java/java/util/
EnumSet.java
150
public static <E extends Enum<E>> EnumSet<E>
copyOf
(EnumSet<E> s) {
157
* factory method behaves identically to {@link #
copyOf
(EnumSet)}.
168
public static <E extends Enum<E>> EnumSet<E>
copyOf
(Collection<E> c) {
194
EnumSet<E> result =
copyOf
(s);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/
UsbAccessoryTestActivity.java
141
assertArrayEquals(Arrays.
copyOf
(origBuffer32, 16), buffer16);
149
os.write(Arrays.
copyOf
(origBuffer32, 16));
166
assertArrayEquals(Arrays.
copyOf
(origBuffer32, 16),
167
Arrays.
copyOf
(buffer32, 16));
172
Arrays.
copyOf
(buffer32, 16));
283
os.write(Arrays.
copyOf
(nameBuffer.array(), nameBuffer.limit()));
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/direct/
PowellOptimizer.java
114
final double[] d = /* Arrays.*/
copyOf
(direc[i], n); // Java 1.5 does not support Arrays.
copyOf
()
286
* Java 1.5 does not support Arrays.
copyOf
()
292
private double[]
copyOf
(double[] source, int newLen) {
Completed in 3937 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>