- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 549 for tablist (0.07 sec)
-
android/guava-tests/test/com/google/common/primitives/BytesTest.java
public void testAsList_subList_toArray_roundTrip() { byte[] array = {(byte) 0, (byte) 1, (byte) 2, (byte) 3}; List<Byte> list = Bytes.asList(array); assertThat(Bytes.toArray(list.subList(1, 3))).isEqualTo(new byte[] {(byte) 1, (byte) 2}); assertThat(Bytes.toArray(list.subList(2, 2))).isEqualTo(new byte[] {}); } // `primitives` can't depend on `collect`, so this is what the prod code has to return.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ArrayListMultimapTest.java
multimap.putAll("foo", asList(1, 2, 3, 4, 5)); List<Integer> list = multimap.get("foo"); assertThat(multimap.get("foo")).containsExactly(1, 2, 3, 4, 5).inOrder(); List<Integer> sublist = list.subList(0, 5); assertThat(sublist).containsExactly(1, 2, 3, 4, 5).inOrder(); sublist.clear(); assertTrue(sublist.isEmpty()); multimap.put("foo", 6);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 6.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableList.java
} } /** * Called by the default implementation of {@link #subList} when {@code toIndex - fromIndex > 1}, * after index validation has already been performed. */ ImmutableList<E> subListUnchecked(int fromIndex, int toIndex) { return new SubList(fromIndex, toIndex - fromIndex); } private final class SubList extends ImmutableList<E> { final transient int offset;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 27.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/DoublesTest.java
List<Double> list = Doubles.asList(array); assertThat(Doubles.toArray(list.subList(1, 3))).isEqualTo(new double[] {1.0, 2.0}); assertThat(Doubles.toArray(list.subList(2, 2))).isEmpty(); } // `primitives` can't depend on `collect`, so this is what the prod code has to return. @SuppressWarnings("EmptyList") public void testAsListEmpty() { assertThat(Doubles.asList(EMPTY)).isSameInstanceAs(Collections.emptyList());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 30.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
assertEquals(asList("a", "b", "a", "c"), list); } public void testBuilderAddAll_iterable() { List<String> a = asList("a", "b"); List<String> b = asList("c", "d"); ImmutableList<String> list = new ImmutableList.Builder<String>().addAll(a).addAll(b).build(); assertEquals(asList("a", "b", "c", "d"), list); b.set(0, "f"); assertEquals(asList("a", "b", "c", "d"), list); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/CharsTest.java
public void testAsList_subList_toArray_roundTrip() { char[] array = {(char) 0, (char) 1, (char) 2, (char) 3}; List<Character> list = Chars.asList(array); assertThat(Chars.toArray(list.subList(1, 3))).isEqualTo(new char[] {(char) 1, (char) 2}); assertThat(Chars.toArray(list.subList(2, 2))).isEqualTo(new char[] {}); } // `primitives` can't depend on `collect`, so this is what the prod code has to return.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/IntsTest.java
public void testAsList_subList_toArray_roundTrip() { 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.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
E[] array = createArrayWithNullElement(); array[0] = null; collection = getSubjectGenerator().create(array); List<E> expectedWithDuplicateRemoved = asList(array).subList(1, getNumElements()); expectContents(expectedWithDuplicateRemoved); } @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE})
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java
.named("ImmutableDoubleArray.asList"), ListTestSuiteBuilder.using(new ImmutableDoubleArrayHeadSubListAsListGenerator()) .named("ImmutableDoubleArray.asList, head subList"), ListTestSuiteBuilder.using(new ImmutableDoubleArrayTailSubListAsListGenerator()) .named("ImmutableDoubleArray.asList, tail subList"),
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 21.5K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* exclusive. This is equivalent to {@code * Collections.reverse(Booleans.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} * @since 23.1 */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0)