Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for ImmutableSet (0.22 sec)

  1. 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)
  2. 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)
  3. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * parameters used to build this multimap.
       */
      @Override
      public ImmutableSet<V> get(K key) {
        // This cast is safe as its type is known in constructor.
        ImmutableSet<V> set = (ImmutableSet<V>) map.get(key);
        return MoreObjects.firstNonNull(set, emptySet);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 18:19:31 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      abstract ImmutableSet<Entry<K, V>> createEntrySet();
    
      @LazyInit @RetainedWith @CheckForNull private transient 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;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableMultiset.java

      @Override
      public abstract ImmutableSet<E> elementSet();
    
      @LazyInit @CheckForNull private transient ImmutableSet<Entry<E>> entrySet;
    
      @Override
      public ImmutableSet<Entry<E>> entrySet() {
        ImmutableSet<Entry<E>> es = entrySet;
        return (es == null) ? (entrySet = createEntrySet()) : es;
      }
    
      private ImmutableSet<Entry<E>> createEntrySet() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableMap.java

              return alternatingKeysAndValues[keyIndex ^ 1];
            }
          }
        }
      }
    
      @Override
      ImmutableSet<Entry<K, V>> createEntrySet() {
        return new EntrySet<>(this, alternatingKeysAndValues, 0, size);
      }
    
      static class EntrySet<K, V> extends ImmutableSet<Entry<K, V>> {
        private final transient ImmutableMap<K, V> map;
        private final transient @Nullable Object[] alternatingKeysAndValues;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      @Beta // TODO: b/288085449 - Remove.
      public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Not supported. Use {@link #naturalOrder}, which offers better type-safety, instead. This method
       * exists only to hide {@link ImmutableSet#builder} from consumers of {@code ImmutableSortedSet}.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableTable.java

          }
        }
      }
    
      ImmutableTable() {}
    
      @Override
      public ImmutableSet<Cell<R, C, V>> cellSet() {
        return (ImmutableSet<Cell<R, C, V>>) super.cellSet();
      }
    
      @Override
      abstract ImmutableSet<Cell<R, C, V>> createCellSet();
    
      @Override
      final UnmodifiableIterator<Cell<R, C, V>> cellIterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        LinkedHashSet<E> set = Sets.newLinkedHashSet();
        set.add(freshElement);
        return set;
      }
    
      @Generates
      static <E> ImmutableSet<E> generateImmutableSet(E freshElement) {
        return ImmutableSet.of(freshElement);
      }
    
      @Generates
      static <E extends Comparable<? super E>> SortedSet<E> generateSortedSet(E freshElement) {
        return generateNavigableSet(freshElement);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
Back to top