- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 159 for ImmutableSet (0.18 sec)
-
android/guava/src/com/google/common/collect/ImmutableSet.java
public static <E> ImmutableSet<E> of() { return (ImmutableSet<E>) RegularImmutableSet.EMPTY; } /** * Returns an immutable set containing {@code element}. Preferred over {@link * Collections#singleton} for code consistency, {@code null} rejection, and because the return * type conveys the immutability guarantee. */ public static <E> ImmutableSet<E> of(E element) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 22.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
public static <E> ImmutableSet<E> of() { return (ImmutableSet<E>) RegularImmutableSet.EMPTY; } /** * Returns an immutable set containing {@code element}. Preferred over {@link * Collections#singleton} for code consistency, {@code null} rejection, and because the return * type conveys the immutability guarantee. */ public static <E> ImmutableSet<E> of(E element) {
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 35.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSetTest.java
new EqualsTester() .addEqualityGroup(ImmutableSet.of(), ImmutableSet.of()) .addEqualityGroup(ImmutableSet.of(1), ImmutableSet.of(1), ImmutableSet.of(1, 1)) .addEqualityGroup(ImmutableSet.of(1, 2, 1), ImmutableSet.of(2, 1, 1)) .testEquals(); } /** * The maximum allowed probability of falsely detecting a hash flooding attack if the input is * randomly generated. */
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java
.addEqualityGroup(ImmutableSet.of(1), ImmutableSet.of(1), ImmutableSet.of(1, 1)) .addEqualityGroup(ImmutableSet.of(1, 2, 1), ImmutableSet.of(2, 1, 1)) .testEquals(); } @GwtIncompatible("internals") public void testControlsArraySize() { ImmutableSet.Builder<String> builder = new ImmutableSet.Builder<String>(); for (int i = 0; i < 10; i++) { builder.add("foo");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/MathTesting.java
static final Iterable<Double> ALL_DOUBLE_CANDIDATES; static final Iterable<Double> DOUBLE_CANDIDATES_EXCEPT_NAN; static { ImmutableSet.Builder<Double> integralBuilder = ImmutableSet.builder(); ImmutableSet.Builder<Double> fractionalBuilder = ImmutableSet.builder(); integralBuilder.addAll(Doubles.asList(0.0, -0.0, Double.MAX_VALUE, -Double.MAX_VALUE)); // Add small multiples of MIN_VALUE and MIN_NORMAL
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 11.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java
private static final ImmutableSet<String> PS_NOT_RS = ImmutableSet.of("blogspot.com", "blogspot.co.uk", "uk.com"); private static final ImmutableSet<String> PS = ImmutableSet.<String>builder().addAll(RS).addAll(PS_NOT_RS).build(); private static final ImmutableSet<String> NO_PS = ImmutableSet.of("www", "foo.ihopethiswillneverbeapublicsuffix", "x.y.z"); /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Mar 05 13:16:00 GMT 2024 - 17.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 18.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 18.7K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java
} private transient @Nullable ImmutableSet<Entry<K, V>> cachedEntrySet = null; public final ImmutableSet<Entry<K, V>> entrySet() { if (cachedEntrySet != null) { return cachedEntrySet; } return cachedEntrySet = createEntrySet(); } abstract ImmutableSet<Entry<K, V>> createEntrySet(); private transient @Nullable ImmutableSet<K> cachedKeySet = null;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 27 19:19:19 GMT 2024 - 17.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java
.withKeyStrengths(ImmutableSet.of(Strength.STRONG, Strength.WEAK)) .withValueStrengths(ImmutableSet.copyOf(Strength.values())) .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64)) .withMaximumSizes(ImmutableSet.of(0, 1, 10, 100, 1000)) .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000)) .withExpireAfterWrites( ImmutableSet.of(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 11.5K bytes - Viewed (0)