- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 173 for ImmutableSet (0.08 sec)
-
guava-tests/test/com/google/common/collect/LenientSerializableTester.java
@GwtIncompatible // SerializableTester static <E> Set<E> reserializeAndAssertLenient(Set<E> original) { Set<E> copy = reserialize(original); assertEquals(original, copy); assertTrue(copy instanceof ImmutableSet); return copy; } @CanIgnoreReturnValue @GwtIncompatible // SerializableTester static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) { Multiset<E> copy = reserialize(original);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableEnumMapTest.java
.createTestSuite()); suite.addTestSuite(ImmutableEnumMapTest.class); return suite; } public void testIteratesOnce() { Map<AnEnum, AnEnum> map = Maps.asMap( ImmutableSet.of(AnEnum.A), new Function<AnEnum, AnEnum>() { boolean used = false; @Override public AnEnum apply(AnEnum ae) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/graph/AbstractNetwork.java
import static java.util.Collections.unmodifiableSet; import com.google.common.annotations.Beta; import com.google.common.base.Predicate; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Iterators; import com.google.common.collect.Maps; import com.google.common.collect.Sets; import com.google.common.math.IntMath; import java.util.AbstractSet; import java.util.Iterator;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 10.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
* writeReplace} when serializing an instance of the subclass. For an example of this problem, see * b/310253115. */ @NullUnmarked public class WriteReplaceOverridesTest extends TestCase { private static final ImmutableSet<String> GUAVA_PACKAGES = FluentIterable.of( "base", "cache", "collect", "escape", "eventbus", "graph",Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 01 03:07:54 UTC 2025 - 5.1K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.ImmutableMultiset; import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSetMultimap; import com.google.common.collect.ImmutableSortedMap; import com.google.common.collect.ImmutableSortedMultiset; import com.google.common.collect.ImmutableSortedSet;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 17.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
ImmutableSet<String> set = ImmutableSortedSet.of("a", "e", "i", "o", "u").subSet("c", "r"); ImmutableList<String> list = set.asList(); assertTrue(list instanceof ImmutableSortedAsList); ImmutableList<String> copy = SerializableTester.reserializeAndAssert(list); assertTrue(copy instanceof ImmutableSortedAsList); } public void testAsListInconsistentComparator() { ImmutableSet<String> set =
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntrySet.java
/** * {@code entrySet()} implementation for {@link ImmutableMap}. * * @author Jesse Wilson * @author Kevin Bourrillion */ @GwtCompatible abstract class ImmutableMapEntrySet<K, V> extends ImmutableSet.CachingAsList<Entry<K, V>> { private static final int SPLITERATOR_CHARACTERISTICS = Spliterator.ORDERED | Spliterator.DISTINCT | Spliterator.NONNULL | Spliterator.IMMUTABLE;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Nov 17 22:50:48 UTC 2025 - 4.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
bimap.put("one", 1); BiMap<String, Integer> sync = Maps.synchronizedBiMap(bimap); bimap.put("two", 2); sync.put("three", 3); assertEquals(ImmutableSet.of(1, 2, 3), bimap.inverse().keySet()); assertEquals(ImmutableSet.of(1, 2, 3), sync.inverse().keySet()); } private static final Function<Integer, Double> SQRT_FUNCTION = in -> Math.sqrt(in); public void testTransformValues() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 62.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/TreeBasedTableTest.java
Set<String> set = sortedTable.rowKeySet().subSet("cat", "egg"); assertEquals(singleton("dog"), set); set.clear(); assertTrue(set.isEmpty()); assertEquals(ImmutableSet.of("bar", "foo"), sortedTable.rowKeySet()); } public void testRowMapComparator() { sortedTable = TreeBasedTable.create(); assertSame(Ordering.natural(), sortedTable.rowMap().comparator());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/NullPointerTester.java
} } static boolean isPrimitiveOrNullable(Parameter param) { return param.getType().getRawType().isPrimitive() || isNullable(param); } private static final ImmutableSet<String> NULLABLE_ANNOTATION_SIMPLE_NAMES = ImmutableSet.of("CheckForNull", "Nullable", "NullableDecl", "NullableType"); static boolean isNullable(Invokable<?, ?> invokable) { return NULLNESS_ANNOTATION_READER.isNullable(invokable); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 24.9K bytes - Viewed (0)