Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toImmutableEnumSet (0.08 sec)

  1. guava-tests/test/com/google/common/collect/SetsTest.java

      public void testToImmutableEnumSet() {
        Set<SomeEnum> units = Stream.of(SomeEnum.D, SomeEnum.B).collect(toImmutableEnumSet());
    
        assertThat(units).containsExactly(SomeEnum.B, SomeEnum.D).inOrder();
      }
    
      public void testToImmutableEnumSetEmpty() {
        Set<SomeEnum> units = Stream.<SomeEnum>empty().collect(toImmutableEnumSet());
        assertThat(units).isEmpty();
      }
    
      public void testToImmutableEnumSetReused() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CollectCollectors.java

            ImmutableSortedSet.Builder::combine,
            ImmutableSortedSet.Builder::build);
      }
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E extends Enum<E>> Collector<E, ?, ImmutableSet<E>> toImmutableEnumSet() {
        return (Collector) EnumSetAccumulator.TO_IMMUTABLE_ENUM_SET;
      }
    
      private static <E extends Enum<E>>
          Collector<E, EnumSetAccumulator<E>, ImmutableSet<E>> toImmutableEnumSetGeneric() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Sets.java

      @SuppressWarnings("Java7ApiChecker")
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <E extends Enum<E>> Collector<E, ?, ImmutableSet<E>> toImmutableEnumSet() {
        return CollectCollectors.toImmutableEnumSet();
      }
    
      /**
       * Returns a new, <i>mutable</i> {@code EnumSet} instance containing the given elements in their
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top