Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 3,297 for Element3 (0.17 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedList.java

        public IsolatedList(ImmutableList<Isolatable<?>> elements) {
            super(elements);
        }
    
        @Override
        public ValueSnapshot asSnapshot() {
            if (elements.isEmpty()) {
                return ListValueSnapshot.EMPTY;
            }
            ImmutableList.Builder<ValueSnapshot> builder = ImmutableList.builderWithExpectedSize(elements.size());
            for (Isolatable<?> element : elements) {
                builder.add(element.asSnapshot());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/test/groovy/org/gradle/language/internal/DefaultBinaryCollectionTest.groovy

            when:
            container.get()
    
            then:
            def e = thrown(IllegalStateException)
            e.message == 'Cannot query the elements of this container as the elements have not been created yet.'
        }
    
        def "cannot get elements from when known action"() {
            given:
            container.add(Stub(SwiftBinary))
            container.whenElementKnown { container.get() }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  3. subprojects/core/src/test/groovy/org/gradle/api/internal/DefaultNamedDomainObjectListTest.groovy

        }
    
        def "fires events when elements are added"() {
            Action<String> action = Mock()
    
            given:
            list.all(action)
    
            when:
            list.addAll(0, ['a', 'b'])
    
            then:
            1 * action.execute('a')
            1 * action.execute('b')
            0 * action._
        }
    
        def "ignores duplicate elements when adding collection at given index"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 01 08:21:31 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. .teamcity/src/main/kotlin/model/bucket-extensions.kt

    import kotlin.math.min
    
    /**
     * Split a list of elements into nearly even sublist. If an element is too large, largeElementSplitFunction will be used to split the large element into several smaller pieces;
     * if some elements are too small, they will be aggregated by smallElementAggregateFunction.
     *
     * @param list the list to split, must be ordered by size desc
     * @param toIntFunction the function used to map the element to its "size"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 17 05:17:44 UTC 2022
    - 4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

      // Query Operations
    
      /**
       * Returns the number of occurrences of {@code element} in this multiset.
       *
       * @param element the element to look for
       * @return the nonnegative number of occurrences of the element
       */
      @Override
      public int count(@CheckForNull Object element) {
        AtomicInteger existingCounter = Maps.safeGet(countMap, element);
        return (existingCounter == null) ? 0 : existingCounter.get();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/EvictingQueue.java

    /**
     * A non-blocking queue which automatically evicts elements from the head of the queue when
     * attempting to add new elements onto the queue and it is full. This queue orders elements FIFO
     * (first-in-first-out). This data structure is logically equivalent to a circular buffer (i.e.,
     * cyclic buffer or ring buffer).
     *
     * <p>An evicting queue must be configured with a maximum size. Each time an element is added to a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:52:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/EvictingQueue.java

    /**
     * A non-blocking queue which automatically evicts elements from the head of the queue when
     * attempting to add new elements onto the queue and it is full. This queue orders elements FIFO
     * (first-in-first-out). This data structure is logically equivalent to a circular buffer (i.e.,
     * cyclic buffer or ring buffer).
     *
     * <p>An evicting queue must be configured with a maximum size. Each time an element is added to a
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 12 17:52:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/ModelElement.java

    /**
     * Represents an element in a model. Elements are arranged in a hierarchy.
     */
    @Incubating
    public interface ModelElement extends Named {
        /**
         * Returns the name of this element. Each element has a name associated with it, that uniquely identifies the element amongst its siblings.
         * Some element have their name generated or automatically assigned, and for these elements the name may not be human consumable.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

        }
    
        @Override
        @SuppressWarnings("varargs")
        @SafeVarargs
        public final void appendAll(T... elements) {
            withActualValue(it -> it.addAll(elements));
        }
    
        @Override
        public void appendAll(Iterable<? extends T> elements) {
            withActualValue(it -> it.addAll(elements));
        }
    
        @Override
        public void appendAll(Provider<? extends Iterable<? extends T>> provider) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ListValueSnapshot.java

            List<?> list = (List<?>) value;
            int pos = 0;
            int len = Math.min(elements.size(), list.size());
            ValueSnapshot newElement = null;
            for (; pos < len; pos++) {
                ValueSnapshot element = elements.get(pos);
                newElement = snapshotter.snapshot(list.get(pos), element);
                if (element != newElement) {
                    break;
                }
                newElement = null;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top