- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for arrayOf (0.12 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
// Type inference is doomed here: int.class is the same as Integer.class, so this is comparing // TypeToken<int[]> and TypeToken<Integer[]>. assertEquals(new TypeToken<int[]>() {}, arrayOf(int.class)); assertEquals(int[].class, arrayOf(int.class).getRawType()); } @SuppressWarnings("unused") // used by reflection private static class Holder<T> { List<T>[] matrix; void setList(List<T> list) {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java
// Type inference is doomed here: int.class is the same as Integer.class, so this is comparing // TypeToken<int[]> and TypeToken<Integer[]>. assertEquals(new TypeToken<int[]>() {}, arrayOf(int.class)); assertEquals(int[].class, arrayOf(int.class).getRawType()); } @SuppressWarnings("unused") // used by reflection private static class Holder<T> { List<T>[] matrix; void setList(List<T> list) {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 21:13:09 UTC 2024 - 89.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
setUp(parameters.first, parameters.second) val editor = cache.edit("k1")!! editor.setString(0, "AB") editor.setString(1, "C") cache.close() val expected = if (windows) arrayOf("DIRTY k1") else arrayOf("DIRTY k1", "REMOVE k1") assertJournalEquals(*expected) editor.commit() assertJournalEquals(*expected) // 'REMOVE k1' not written because journal is closed. } @ParameterizedTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 75.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/IteratorsTest.java
String[] array = Iterators.toArray(iterator, String.class); assertTrue(Arrays.equals(new String[0], array)); } @GwtIncompatible // Iterators.toArray(Iterator, Class) public void testToArraySingleton() { Iterator<String> iterator = singletonList("a").iterator(); String[] array = Iterators.toArray(iterator, String.class); assertTrue(Arrays.equals(new String[] {"a"}, array)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IteratorsTest.java
String[] array = Iterators.toArray(iterator, String.class); assertTrue(Arrays.equals(new String[0], array)); } @GwtIncompatible // Iterators.toArray(Iterator, Class) public void testToArraySingleton() { Iterator<String> iterator = singletonList("a").iterator(); String[] array = Iterators.toArray(iterator, String.class); assertTrue(Arrays.equals(new String[] {"a"}, array)); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 54.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
} private static final class ArrayItr<T extends @Nullable Object> extends AbstractIndexedListIterator<T> { static final UnmodifiableListIterator<Object> EMPTY = new ArrayItr<>(new Object[0], 0); private final T[] array; ArrayItr(T[] array, int position) { super(array.length, position); this.array = array; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
tensorflow/c/c_api.h
// num_opers - `num_opers` contains the number of elements in the `opers` array // or a special value of -1 meaning that no array is given. // The distinction between an empty array of operations and no // array of operations is necessary to distinguish the case of // creating a function with no body (e.g. identity or permutation)
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedMap.java
// there's a way around creating the separate sortedKeys array, and if we're allocating // one array of size n, we might as well allocate two -- to say nothing of the allocation // done in Arrays.sort. for (int i = 0; i < size; i++) { // We're careful to put only K instances in. if (i > 0 && comparator.compare((K) sortedKeys[i - 1], (K) sortedKeys[i]) == 0) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 53K bytes - Viewed (0) -
guava/src/com/google/common/base/CharMatcher.java
checkNotNull(sequence); return ""; } @Override public String replaceFrom(CharSequence sequence, char replacement) { char[] array = new char[sequence.length()]; Arrays.fill(array, replacement); return new String(array); } @Override public String replaceFrom(CharSequence sequence, CharSequence replacement) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 53.9K bytes - Viewed (0) -
tests/test_generate_unique_id_function.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jan 13 15:10:26 UTC 2024 - 66.7K bytes - Viewed (0)