- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 275 for ImmutableSet (0.42 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 Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 22.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java
public abstract class ImmutableSet<E> extends ImmutableCollection<E> implements Set<E> { ImmutableSet() {} public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() { return CollectCollectors.toImmutableSet(); } // Casting to any type is safe because the set will never hold any elements. @SuppressWarnings({"unchecked"}) public static <E> ImmutableSet<E> of() {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 23 18:43:40 GMT 2024 - 8.3K 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/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 Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Oct 10 19:45:10 GMT 2022 - 11.2K 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 Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 13.7K 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 Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Mar 05 13:16:00 GMT 2024 - 17.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/InvalidatableSetTest.java
// invalidate setToTest wrappedSet.remove(1); // sanity check on update of wrappedSet assertThat(wrappedSet).isNotEqualTo(copyOfWrappedSet); ImmutableSet<Integer> copyOfModifiedSet = ImmutableSet.copyOf(wrappedSet); // {2,3} // sanity check on construction of copyOfModifiedSet assertThat(wrappedSet).isEqualTo(copyOfModifiedSet);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Jan 22 17:29:38 GMT 2024 - 2.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/InvalidatableSetTest.java
// invalidate setToTest wrappedSet.remove(1); // sanity check on update of wrappedSet assertThat(wrappedSet).isNotEqualTo(copyOfWrappedSet); ImmutableSet<Integer> copyOfModifiedSet = ImmutableSet.copyOf(wrappedSet); // {2,3} // sanity check on construction of copyOfModifiedSet assertThat(wrappedSet).isEqualTo(copyOfModifiedSet);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Jan 22 17:29:38 GMT 2024 - 2.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SetsTest.java
Set<Set<Integer>> expected = newHashSet(); expected.add(ImmutableSet.<Integer>of()); expected.add(ImmutableSet.of(1)); expected.add(ImmutableSet.of(2)); expected.add(ImmutableSet.of(3)); expected.add(ImmutableSet.of(1, 2)); expected.add(ImmutableSet.of(1, 3)); expected.add(ImmutableSet.of(2, 3)); expected.add(ImmutableSet.of(1, 2, 3));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 49.3K bytes - Viewed (0)