- Sort Score
- Result 10 results
- Languages All
Results 231 - 240 of 276 for ImmutableList (0.08 sec)
-
android/guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
private static final TreeTraverser<BinaryNode> VIEWER = new TreeTraverser<BinaryNode>() { @Override public Iterable<BinaryNode> children(BinaryNode root) { return Optional.presentInstances(ImmutableList.of(root.left, root.right)); } }; enum Traversal { PRE_ORDER { @Override <T> Iterable<T> view(T root, TreeTraverser<T> viewer) {
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/cache/CacheBuilderGwtTest.java
*/ package com.google.common.cache; import static java.util.concurrent.TimeUnit.MILLISECONDS; import com.google.common.annotations.GwtCompatible; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.testing.FakeTicker; import java.util.HashSet; import java.util.Iterator; import java.util.Map;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
* IllegalArgumentException: * https://bugs.openjdk.org/browse/JDK-4506427 */ } } @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types public void testSubList_empty() { assertEquals("subList(0, 0) should be empty", emptyList(), getList().subList(0, 0)); } public void testSubList_entireList() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 13.5K bytes - Viewed (0) -
guava/src/com/google/common/io/Resources.java
* Reads all of the lines from a URL. The lines do not include line-termination characters, but do * include other leading and trailing whitespace. * * <p>This method returns a mutable {@code List}. For an {@code ImmutableList}, use {@code * Resources.asCharSource(url, charset).readLines()}. * * @param url the URL to read from * @param charset the charset used to decode the input stream; see {@link StandardCharsets} forRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 7.4K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/BinaryTreeTraverserBenchmark.java
private static final TreeTraverser<BinaryNode> VIEWER = new TreeTraverser<BinaryNode>() { @Override public Iterable<BinaryNode> children(BinaryNode root) { return Optional.presentInstances(ImmutableList.of(root.left, root.right)); } }; enum Traversal { PRE_ORDER { @Override <T> Iterable<T> view(T root, TreeTraverser<T> viewer) {
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/src/com/google/common/collect/RegularContiguousSet.java
public C last() { // requireNonNull is safe because we checked the range is not empty in ContiguousSet.create. return requireNonNull(range.upperBound.greatestValueBelow(domain)); } @Override ImmutableList<C> createAsList() { if (domain.supportsFastOffset) { return new ImmutableAsList<C>() { @Override ImmutableSortedSet<C> delegateCollection() { return RegularContiguousSet.this;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RegularImmutableTableTest.java
new DenseImmutableTable<>(CELLS.asList(), ROW_SPACE, COLUMN_SPACE); @Override Iterable<ImmutableTable<Character, Integer, String>> getTestInstances() { return ImmutableList.<ImmutableTable<Character, Integer, String>>of(SPARSE, DENSE); } public void testCellSet() { for (ImmutableTable<Character, Integer, String> testInstance : getTestInstances()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 6.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/MoreCollectors.java
} /** * This atrocity is here to let us report several of the elements in the stream if there were more * than one, not just two. */ @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types private static final class ToOptionalState { static final int MAX_EXTRAS = 4; @Nullable Object element; List<Object> extras; ToOptionalState() {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 5.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} public void testAsList() { ImmutableMultiset<String> multiset = ImmutableMultiset.of("a", "a", "b", "b", "b"); ImmutableList<String> list = multiset.asList(); assertEquals(ImmutableList.of("a", "a", "b", "b", "b"), list); assertEquals(2, list.indexOf("b")); assertEquals(4, list.lastIndexOf("b")); } @J2ktIncompatible
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FilteredEntryMultimap.java
} @Override public Collection<V> removeAll(@Nullable Object key) { return MoreObjects.firstNonNull(asMap().remove(key), unmodifiableEmptyCollection()); } @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types Collection<V> unmodifiableEmptyCollection() { // These return false, rather than throwing a UOE, on remove calls.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.3K bytes - Viewed (0)