Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for addToCollection (0.59 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. 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)
  3. 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)
Back to top