Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for toImmutableSet (0.26 sec)

  1. subprojects/core/src/main/java/org/gradle/execution/plan/DefaultNodeValidator.java

    import org.gradle.internal.reflect.validation.TypeValidationProblemRenderer;
    
    import java.util.List;
    import java.util.Set;
    
    import static com.google.common.collect.ImmutableSet.toImmutableSet;
    import static org.gradle.internal.deprecation.DeprecationMessageBuilder.withDocumentation;
    import static org.gradle.internal.reflect.validation.TypeValidationProblemRenderer.convertToSingleLine;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 04 07:42:50 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. 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() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/steps/ValidateStep.java

    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    
    import static com.google.common.collect.ImmutableList.toImmutableList;
    import static com.google.common.collect.ImmutableSet.toImmutableSet;
    import static java.util.function.Function.identity;
    import static java.util.stream.Collectors.groupingBy;
    import static java.util.stream.Collectors.mapping;
    import static org.gradle.api.problems.Severity.ERROR;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CollectCollectors.java

        return (Collector) TO_IMMUTABLE_LIST;
      }
    
      // Sets
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return (Collector) TO_IMMUTABLE_SET;
      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        checkNotNull(comparator);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:21:40 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/CollectCollectors.java

        return (Collector) TO_IMMUTABLE_LIST;
      }
    
      // Sets
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return (Collector) TO_IMMUTABLE_SET;
      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        checkNotNull(comparator);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:21:40 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdater.java

            ImmutableSet<File> oldProbedHierarchies = probedHierarchies;
            probedHierarchies = watchableHierarchies.stream()
                .filter(watchedFiles::contains)
                .collect(ImmutableSet.toImmutableSet());
            if (oldProbedHierarchies.equals(probedHierarchies)) {
                return;
            }
    
            oldProbedHierarchies.stream()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:02:39 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSet.java

      @SuppressWarnings({"AndroidJdkLibsChecker", "Java7ApiChecker"})
      @IgnoreJRERequirement // Users will use this only if they're already using streams.
      public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return CollectCollectors.toImmutableSet();
      }
    
      /**
       * Returns the empty immutable set. Preferred over {@link Collections#emptySet} for code
       * consistency, and because the return type conveys the immutability guarantee.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSet.java

       * duplicate in encounter order will appear in the result.
       *
       * @since 21.0
       */
      public static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return CollectCollectors.toImmutableSet();
      }
    
      /**
       * Returns the empty immutable set. Preferred over {@link Collections#emptySet} for code
       * consistency, and because the return type conveys the immutability guarantee.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        return new SerializedForm<E>(comparator, toArray());
      }
    
      /**
       * Not supported. Use {@link #toImmutableSortedSet} instead. This method exists only to hide
       * {@link ImmutableSet#toImmutableSet} from consumers of {@code ImmutableSortedSet}.
       *
       * @throws UnsupportedOperationException always
       * @deprecated Use {@link ImmutableSortedSet#toImmutableSortedSet}.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  10. testing/architecture-test/src/test/java/org/gradle/architecture/test/ArchUnitFixture.java

                ImmutableSet<String> matchedClasses = referencedTypes.stream()
                    .filter(it -> !types.test(it))
                    .map(JavaClass::getName)
                    .collect(ImmutableSet.toImmutableSet());
                boolean fulfilled = matchedClasses.isEmpty();
                String message = fulfilled
                    ? String.format("%s has only arguments/return type that are %s in %s",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top