Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for RegularImmutableSet (0.14 sec)

  1. guava/src/com/google/common/collect/RegularImmutableSet.java

    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    @ElementTypesAreNonnullByDefault
    final class RegularImmutableSet<E> extends ImmutableSet.CachingAsList<E> {
      private static final Object[] EMPTY_ARRAY = new Object[0];
      static final RegularImmutableSet<Object> EMPTY =
          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0);
    
      private final transient Object[] elements;
      private final transient int hashCode;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableSetTest.java

      }
    
      @GwtIncompatible // RegularImmutableSet.table not in emulation
      private void verifyTableSize(int inputSize, int setSize, int tableSize) {
        Builder<Integer> builder = ImmutableSet.builder();
        for (int i = 0; i < inputSize; i++) {
          builder.add(i % setSize);
        }
        ImmutableSet<Integer> set = builder.build();
        assertTrue(set instanceof RegularImmutableSet);
        assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top