- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 199 for ImmutableSet (0.1 sec)
-
guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java
return new SpliteratorTester<>( ImmutableSet.of( () -> new GeneralSpliteratorOfObject<>(spliteratorSupplier.get()), () -> new GeneralSpliteratorOfPrimitive<>(spliteratorSupplier.get(), c -> c::accept))); } private final ImmutableSet<Supplier<GeneralSpliterator<E>>> spliteratorSuppliers; private SpliteratorTester(ImmutableSet<Supplier<GeneralSpliterator<E>>> spliteratorSuppliers) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 12.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/SingletonImmutableBiMap.java
} @Override boolean isPartialView() { return false; } @Override ImmutableSet<Entry<K, V>> createEntrySet() { return ImmutableSet.of(immutableEntry(singleKey, singleValue)); } @Override ImmutableSet<K> createKeySet() { return ImmutableSet.of(singleKey); } @CheckForNull private final transient ImmutableBiMap<V, K> inverse;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongTest.java
@GwtCompatible(emulated = true) public class UnsignedLongTest extends TestCase { private static final ImmutableSet<Long> TEST_LONGS; private static final ImmutableSet<BigInteger> TEST_BIG_INTEGERS; static { ImmutableSet.Builder<Long> testLongsBuilder = ImmutableSet.builder(); ImmutableSet.Builder<BigInteger> testBigIntegersBuilder = ImmutableSet.builder();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 10.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java
ExceptionType(Class<? extends Exception> exceptionType) { this.exceptionType = exceptionType; } } private static final ImmutableSet<Class<? extends Exception>> OTHER_EXCEPTION_TYPES = ImmutableSet.of( BackingStoreException.class, BrokenBarrierException.class, CloneNotSupportedException.class, DataFormatException.class,
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Mar 22 03:01:34 UTC 2022 - 6.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
@SuppressWarnings({"nullness", "unchecked"}) // see supertype public ImmutableSet<@NonNull E> immutableCopy() { ImmutableSet.Builder<@NonNull E> builder = new ImmutableSet.Builder<@NonNull E>() .addAll((Iterable<@NonNull E>) set1) .addAll((Iterable<@NonNull E>) set2); return (ImmutableSet<@NonNull E>) builder.build(); } }; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 21 14:28:19 UTC 2024 - 78.8K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/SubscriberRegistry.java
return MoreObjects.firstNonNull(subscribers.get(eventType), ImmutableSet.<Subscriber>of()); } /** * Gets an iterator representing an immutable snapshot of all subscribers to the given event at * the time this method is called. */ Iterator<Subscriber> getSubscribers(Object event) { ImmutableSet<Class<?>> eventTypes = flattenHierarchy(event.getClass());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 15:16:45 UTC 2024 - 10.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/ArbitraryInstances.java
// All collections are immutable empty. So safe for any type parameter. .put(Iterator.class, ImmutableSet.of().iterator()) .put(PeekingIterator.class, Iterators.peekingIterator(ImmutableSet.of().iterator())) .put(ListIterator.class, ImmutableList.of().listIterator()) .put(Iterable.class, ImmutableSet.of()) .put(Collection.class, ImmutableList.of())
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 21.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestOutputStream.java
import static com.google.common.io.TestOption.WRITE_THROWS; import com.google.common.collect.ImmutableSet; import java.io.FilterOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Arrays; /** @author Colin Decker */ public class TestOutputStream extends FilterOutputStream { private final ImmutableSet<TestOption> options; private boolean closed;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestOutputStream.java
import static com.google.common.io.TestOption.WRITE_THROWS; import com.google.common.collect.ImmutableSet; import java.io.FilterOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Arrays; /** @author Colin Decker */ public class TestOutputStream extends FilterOutputStream { private final ImmutableSet<TestOption> options; private boolean closed;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetOperationsTest.java
enemies = newHashSet("Dick", "Harry", "Tom"); } public void testUnion() { Set<String> all = Sets.union(friends, enemies); assertEquals(5, all.size()); ImmutableSet<String> immut = Sets.union(friends, enemies).immutableCopy(); HashSet<String> mut = Sets.union(friends, enemies).copyInto(new HashSet<String>()); enemies.add("Buck"); assertEquals(6, all.size());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 14.5K bytes - Viewed (0)