Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addToCollection (0.67 sec)

  1. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GUtilTest.groovy

        }
    
        def "adds to collection"() {
            def list = [0]
            when:
            addToCollection(addToCollection(list, [1, 2]), [2, 3])
            then:
            list == [0, 1, 2, 2, 3]
        }
    
        def "adds empty list to collection"() {
            expect:
            addToCollection([], []) == []
            addToCollection([1], []) == [1]
        }
    
        def "adds to collection preventing nulls"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

            }
            return dest;
        }
    
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, Iterable<? extends V> src) {
            return addToCollection(dest, false, src);
        }
    
        @Deprecated
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, boolean failOnNull, Iterable<? extends V>... srcs) {
            for (Iterable<? extends V> src : srcs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

            }
            return dest;
        }
    
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, Iterable<? extends V> src) {
            return addToCollection(dest, false, src);
        }
    
        @Deprecated
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, boolean failOnNull, Iterable<? extends V>... srcs) {
            for (Iterable<? extends V> src : srcs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/process/internal/ProcessArgumentsSpec.java

                throw new IllegalArgumentException("args == null!");
            }
            args(Arrays.asList(args));
            return this;
        }
    
        public ProcessArgumentsSpec args(Iterable<?> args) {
            GUtil.addToCollection(arguments, true, args);
            return this;
        }
    
        public ProcessArgumentsSpec setArgs(List<String> arguments) {
            this.arguments.clear();
            args(arguments);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:06 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcessBuilder.java

        public Set<File> getApplicationClasspath() {
            return applicationClasspath;
        }
    
        @Override
        public WorkerProcessBuilder applicationModulePath(Iterable<File> files) {
            GUtil.addToCollection(applicationModulePath, files);
            return this;
        }
    
        @Override
        public Set<File> getApplicationModulePath() {
            return applicationModulePath;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/graph/CachingDirectedGraphWalker.java

            add(Arrays.asList(values));
            return this;
        }
    
        /**
         * Adds some start nodes.
         */
        public CachingDirectedGraphWalker<?, ?> add(Iterable<? extends N> values) {
            GUtil.addToCollection(startNodes, values);
            return this;
        }
    
        /**
         * Calculates the set of values of nodes reachable from the start nodes.
         */
        public Set<T> findValues() {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/file/DefaultSourceDirectorySet.java

            source.addAll(Arrays.asList(srcDirs));
            return this;
        }
    
        @Override
        public SourceDirectorySet setSrcDirs(Iterable<?> srcPaths) {
            source.clear();
            GUtil.addToCollection(source, srcPaths);
            return this;
        }
    
        @Override
        public SourceDirectorySet source(SourceDirectorySet source) {
            this.source.add(source);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Oct 29 02:23:21 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top