Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 230 for ImmutableSet (0.33 seconds)

  1. android/guava/src/com/google/common/collect/ImmutableEnumSet.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link ImmutableSet} backed by a non-empty {@link java.util.EnumSet}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @SuppressWarnings("serial") // we're overriding default serialization
    final class ImmutableEnumSet<E extends Enum<E>> extends ImmutableSet<E> {
      static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) {
        switch (set.size()) {
          case 0:
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/RegularImmutableMultiset.java

      private final transient int hashCode;
    
      @LazyInit private transient @Nullable ImmutableSet<E> elementSet;
    
      private RegularImmutableMultiset(
          ImmutableEntry<E>[] entries,
          @Nullable ImmutableEntry<?>[] hashTable,
          int size,
          int hashCode,
          @Nullable ImmutableSet<E> elementSet) {
        this.entries = entries;
        this.hashTable = hashTable;
        this.size = size;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableSetMultimap.java

        if (mapEntries.isEmpty()) {
          return of();
        }
        ImmutableMap.Builder<K, ImmutableSet<V>> builder =
            new ImmutableMap.Builder<>(mapEntries.size());
        int size = 0;
    
        for (Entry<K, ImmutableCollection.Builder<V>> entry : mapEntries) {
          K key = entry.getKey();
          ImmutableSet.Builder<? extends V> values = (ImmutableSet.Builder<V>) entry.getValue();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Feb 19 22:57:35 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

      }
    
      private transient @Nullable ImmutableSet<Entry<K, V>> cachedEntrySet = null;
    
      @Override
      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;
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 15:51:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  5. 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
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/RegularImmutableTable.java

        }
    
        ImmutableSet<R> rowSpace =
            (rowComparator == null)
                ? ImmutableSet.copyOf(rowSpaceBuilder)
                : ImmutableSet.copyOf(ImmutableList.sortedCopyOf(rowComparator, rowSpaceBuilder));
        ImmutableSet<C> columnSpace =
            (columnComparator == null)
                ? ImmutableSet.copyOf(columnSpaceBuilder)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/net/InetAddressesTest.java

        ImmutableSet<String> validIsatapAddresses =
            ImmutableSet.of(
                "2001:db8::5efe:102:304",
                "2001:db8::100:5efe:102:304", // Private Multicast? Not likely.
                "2001:db8::200:5efe:102:304",
                "2001:db8::300:5efe:102:304" // Public Multicast? Also unlikely.
                );
        ImmutableSet<String> nonIsatapAddresses =
            ImmutableSet.of(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/reflect/ClassPath.java

         */
        public ImmutableSet<ResourceInfo> scanResources(Set<File> scannedFiles) throws IOException {
          ImmutableSet.Builder<ResourceInfo> builder = ImmutableSet.builder();
          scannedFiles.add(home);
          scan(home, scannedFiles, builder);
          return builder.build();
        }
    
        private void scan(File file, Set<File> scannedUris, ImmutableSet.Builder<ResourceInfo> builder)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      abstract ImmutableSet<Entry<K, V>> createEntrySet();
    
      @LazyInit @RetainedWith private transient @Nullable ImmutableSet<K> keySet;
    
      /**
       * Returns an immutable set of the keys in this map, in the same order that they appear in {@link
       * #entrySet}.
       */
      @Override
      public ImmutableSet<K> keySet() {
        ImmutableSet<K> result = keySet;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 41.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/net/HttpHeadersTest.java

          httpHeaders.add((String) field.get(null));
        }
        assertThat(httpHeaders.build()).containsNoDuplicates();
      }
    
      private static ImmutableSet<Field> httpHeadersFields() {
        ImmutableSet.Builder<Field> builder = ImmutableSet.builder();
        for (Field field : HttpHeaders.class.getDeclaredFields()) {
          /*
           * Coverage mode generates synthetic fields.  If we ever add private
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:10:09 GMT 2026
    - 4.1K bytes
    - Click Count (0)
Back to Top