Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for toImmutableSet (0.16 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/fingerprint/impl/FileCollectionFingerprinterRegistrations.java

    import java.util.Collection;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.function.Function;
    import java.util.stream.Stream;
    
    import static com.google.common.collect.ImmutableSet.toImmutableSet;
    import static java.util.Arrays.stream;
    import static org.gradle.internal.execution.impl.FingerprinterRegistration.registration;
    
    public class FileCollectionFingerprinterRegistrations {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 29 16:58:45 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. subprojects/core/src/testFixtures/groovy/org/gradle/test/fixtures/VersionCoverage.groovy

        }
    
        static Set<String> filterVersions(Collection<String> versionsToFilter, Range<VersionNumber> range) {
            versionsToFilter.stream().filter { range.contains(VersionNumber.parse(it)) }.collect(ImmutableSet.toImmutableSet())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Sep 06 16:42:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/transaction/CompileTransaction.java

                .filter(Objects::nonNull)
                .collect(ImmutableSet.toImmutableSet());
        }
    
        private static void rollbackOverwrittenFiles(ApiCompilerResult result) {
            result.getBackupClassFiles().forEach((original, backup) -> moveFile(new File(backup), new File(original)));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  10. 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)
Back to top