- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 108 for SubList (1.41 sec)
-
guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java
SampleElements<E> samples = samples(); List<E> allSampleElements = asList(samples.e0(), samples.e1(), samples.e2(), samples.e3(), samples.e4()); return new ArrayList<>(allSampleElements.subList(0, howMany)); } @Override public CollectionSize getCollectionSize() { return collectionSize; } @Override public Iterable<E> order(List<E> insertionOrder) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
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. @SuppressWarnings("EmptyList")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableListTest.java
.named("ImmutableList, head subList") .withFeatures(CollectionSize.ANY, SERIALIZABLE, ALLOWS_NULL_QUERIES) .createTestSuite()); suite.addTest( ListTestSuiteBuilder.using(new ImmutableListTailSubListGenerator()) .named("ImmutableList, tail subList") .withFeatures(CollectionSize.ANY, SERIALIZABLE, ALLOWS_NULL_QUERIES)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 23.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java
.named("ImmutableLongArray.asList, head subList"), ListTestSuiteBuilder.using(new ImmutableLongArrayTailSubListAsListGenerator()) .named("ImmutableLongArray.asList, tail subList"), ListTestSuiteBuilder.using(new ImmutableLongArrayMiddleSubListAsListGenerator()) .named("ImmutableLongArray.asList, middle subList")); TestSuite suite = new TestSuite();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
if (keys.get(i) < keys.get(minIndex)) { minIndex = i; } } Optional<BinaryNode> leftChild = createTreap(keys.subList(0, minIndex)); Optional<BinaryNode> rightChild = createTreap(keys.subList(minIndex + 1, keys.size())); return Optional.of(new BinaryNode(keys.get(minIndex), leftChild, rightChild)); } };
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/IterablesTest.java
// Changes after are not list.set(0, 5); assertEquals(ImmutableList.of(3, 4), first); } @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT. @GwtIncompatible // Arrays.asList(...).subList doesn't implement RandomAccess in GWT public void testPartitionRandomAccessInput() { Iterable<Integer> source = asList(1, 2, 3);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 45.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
// checkNotNull for GWT (do not optimize) array[start + index] = checkNotNull(element); return oldValue; } @Override public List<Boolean> subList(int fromIndex, int toIndex) { int size = size(); checkPositionIndexes(fromIndex, toIndex, size); if (fromIndex == toIndex) { return Collections.emptyList(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
// checkNotNull for GWT (do not optimize) array[start + index] = checkNotNull(element); return oldValue; } @Override public List<Boolean> subList(int fromIndex, int toIndex) { int size = size(); checkPositionIndexes(fromIndex, toIndex, size); if (fromIndex == toIndex) { return Collections.emptyList(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 20.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryFile.java
public ListIterator<E> listIterator(final int index) { return parent.listIterator(index); } @Override public List<E> subList(final int fromIndex, final int toIndex) { return parent.subList(fromIndex, toIndex); } /** * Returns the total number of records across all pages. * * @return the total record count
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
return entries; } private void expectFirstRemoved(Entry<K, V>[] entries) { resetMap(entries); List<Entry<K, V>> expectedWithDuplicateRemoved = asList(entries).subList(1, getNumElements()); expectContents(expectedWithDuplicateRemoved); } /** * Returns the {@link Method} instance for {@link #testCreateWithNullKeyUnsupported()} so that
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0)