- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 333 for subList (0.04 sec)
-
guava-tests/test/com/google/common/primitives/IntsTest.java
int[] array = {(int) 0, (int) 1, (int) 2, (int) 3}; List<Integer> list = Ints.asList(array); assertThat(Ints.toArray(list.subList(1, 3))).isEqualTo(new int[] {(int) 1, (int) 2}); assertThat(Ints.toArray(list.subList(2, 2))).isEqualTo(new int[] {}); } // `primitives` can't depend on `collect`, so this is what the prod code has to return. @SuppressWarnings("EmptyList")
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 29.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Shorts.java
} /** * Reverses the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex} * exclusive. This is equivalent to {@code * Collections.reverse(Shorts.asList(array).subList(fromIndex, toIndex))}, but is likely to be * more efficient. * * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or * {@code toIndex > fromIndex}Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 25.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CharSourceTester.java
return list; } }); if (expectedLines.isEmpty()) { assertTrue(list.isEmpty()); } else { assertEquals(expectedLines.subList(0, 1), list); } } private void assertExpectedString(String string) { assertEquals(expected, string); } private void assertExpectedLines(List<String> list) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ShortsTest.java
short[] array = {(short) 0, (short) 1, (short) 2, (short) 3}; List<Short> list = Shorts.asList(array); assertThat(Shorts.toArray(list.subList(1, 3))).isEqualTo(new short[] {(short) 1, (short) 2}); assertThat(Shorts.toArray(list.subList(2, 2))).isEqualTo(new short[] {}); } // `primitives` can't depend on `collect`, so this is what the prod code has to return. @SuppressWarnings("EmptyList")
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 20:45:32 UTC 2025 - 27.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
refreshIfEmpty(); return new WrappedListIterator(index); } @Override public List<V> subList(int fromIndex, int toIndex) { refreshIfEmpty(); return wrapList( getKey(), getListDelegate().subList(fromIndex, toIndex), (getAncestor() == null) ? this : getAncestor()); } /** ListIterator decorator. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 48.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CertificateChainCleanerTest.kt
val root = heldCertificates[heldCertificates.size - 1].certificate val cleaner = get(root) assertThat(cleaner.clean(certificates, "hostname")).isEqualTo(certificates) assertThat(cleaner.clean(certificates.subList(0, 9), "hostname")).isEqualTo( certificates, ) } @Test fun chainTooLong() { val heldCertificates = chainOfLength(11) val certificates: MutableList<Certificate> = ArrayList()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.5K bytes - Viewed (1) -
guava-tests/test/com/google/common/collect/ListsTest.java
assertEquals(asList(1, 2), partitions.get(0)); assertEquals(asList(3), partitions.get(1)); } @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT. @GwtIncompatible // ArrayList.subList doesn't implement RandomAccess in GWT. public void testPartitionRandomAccessTrue() { List<Integer> source = asList(1, 2, 3);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
} /** * Reverses the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex} * exclusive. This is equivalent to {@code * Collections.reverse(Chars.asList(array).subList(fromIndex, toIndex))}, but is likely to be more * efficient. * * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or * {@code toIndex > fromIndex}Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Floats.java
} /** * Reverses the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex} * exclusive. This is equivalent to {@code * Collections.reverse(Floats.asList(array).subList(fromIndex, toIndex))}, but is likely to be * more efficient. * * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or * {@code toIndex > fromIndex}Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 22 18:14:49 UTC 2025 - 25.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/log/allcommon/EsAbstractBehavior.java
} public ListIterator<E> listIterator(final int index) { return parent.listIterator(index); } public List<E> subList(final int fromIndex, final int toIndex) { return parent.subList(fromIndex, toIndex); } public RequestOptionCall<BulkRequestBuilder> getCall() { return call; }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 26.4K bytes - Viewed (0)