- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 212 for toArray (0.46 seconds)
-
guava-tests/test/com/google/common/primitives/IntsTest.java
List<Double> doubles = Arrays.asList(0.0, 1.0, 2.0); assertThat(Ints.toArray(bytes)).isEqualTo(array); assertThat(Ints.toArray(shorts)).isEqualTo(array); assertThat(Ints.toArray(ints)).isEqualTo(array); assertThat(Ints.toArray(floats)).isEqualTo(array); assertThat(Ints.toArray(longs)).isEqualTo(array); assertThat(Ints.toArray(doubles)).isEqualTo(array); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 29.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactLinkedHashMap.java
final class KeySetImpl extends KeySetView { @Override public @Nullable Object[] toArray() { return ObjectArrays.toArrayImpl(this); } @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] a) { return ObjectArrays.toArrayImpl(this, a); } @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 10.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java
.testEquals(); } public void testEqualsFalse() { List<Entry<K, V>> targetEntries = new ArrayList<>(getSampleElements()); targetEntries.add(mapEntry(k0(), v3())); new EqualsTester() .addEqualityGroup(multimap()) .addEqualityGroup(getSubjectGenerator().create(targetEntries.toArray())) .testEquals(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.6K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* to dump the queue into a newly allocated array of {@code String}: * * <pre> * String[] y = x.toArray(new String[0]);</pre> * * <p>Note that {@code toArray(new Object[0])} is identical in function to {@code toArray()}. * * @param a the array into which the elements of the queue are to be stored, if it is big enough;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 18.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/DescendingMultiset.java
return Multisets.iteratorImpl(this); } @Override public @Nullable Object[] toArray() { return standardToArray(); } @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] array) { return standardToArray(array); } @Override public String toString() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 4.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java
@Override public boolean retainAll(Collection<?> collection) { return standardRetainAll(collection); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } @Override public String toString() { return standardToString(); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 5.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ForwardingSetTest.java
@Override public boolean retainAll(Collection<?> collection) { return standardRetainAll(collection); } @Override public Object[] toArray() { return standardToArray(); } @Override public <T> T[] toArray(T[] array) { return standardToArray(array); } @Override public String toString() { return standardToString(); } }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 18:46:00 GMT 2025 - 5.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/AbstractBiMap.java
return Maps.valueIterator(entrySet().iterator()); } @Override public @Nullable Object[] toArray() { return standardToArray(); } @Override @SuppressWarnings("nullness") // bug in our checker's handling of toArray signatures public <T extends @Nullable Object> T[] toArray(T[] array) { return standardToArray(array); } @Override public String toString() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 14.3K bytes - Click Count (0) -
guava/src/com/google/common/escape/CharEscaperBuilder.java
* index will default to null. * * @return a "sparse" array that holds the replacement mappings. */ public char[] @Nullable [] toArray() { char[][] result = new char[max + 1][]; for (Entry<Character, String> entry : map.entrySet()) { result[entry.getKey()] = entry.getValue().toCharArray(); } return result; } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 3.9K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java
int i = 0; for (Entry<K, V> entry : originalEntries) { entries.add(mapEntry(keysArray[i++], entry.getValue())); } return mapGenerator.create(entries.toArray()).keySet(); } @Override public K[] createArray(int length) { // TODO: with appropriate refactoring of OneSizeGenerator, we can perhaps // tidy this up and get rid of the casts here and inCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 18.2K bytes - Click Count (0)