Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 3,048 for Element2 (0.1 sec)

  1. guava/src/com/google/common/collect/Lists.java

          Iterable<? extends E> elements) {
        checkNotNull(elements); // for GWT
        // Let ArrayList's sizing logic work, if possible
        return (elements instanceof Collection)
            ? new ArrayList<>((Collection<? extends E>) elements)
            : newArrayList(elements.iterator());
      }
    
      /**
       * Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 16:48:36 UTC 2024
    - 41.9K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/model/internal/ImmutableDomainObjectSet.java

        private final Set<T> elements = new LinkedHashSet<T>();
    
        public ImmutableDomainObjectSet(Iterable<? extends T> elements) {
            for (T element : elements) {
                this.elements.add(element);
            }
        }
    
        @Override
        public Iterator<T> iterator() {
            return elements.iterator();
        }
    
        @Override
        public int size() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ArtifactSetToFileCollectionFactory.java

                List<ResolvedArtifactSet> artifactSets = new ArrayList<>();
                for (Object element : elements) {
                    if (element instanceof ResolvedArtifactSet) {
                        artifactSets.add((ResolvedArtifactSet) element);
                    } else {
                        File file = (File) element;
                        artifactSets.add(new FileBackedArtifactSet(file));
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/SourceElement.java

        /**
         * Returns a source element that contains the union of the given elements.
         */
        public static SourceElement ofElements(final SourceElement... elements) {
            return new SourceElement() {
                @Override
                public List<SourceFile> getFiles() {
                    List<SourceFile> files = new ArrayList<SourceFile>();
                    for (SourceElement element : elements) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

     * elements FIFO (first-in-first-out). The head of the queue is that element that has been
     * on the queue the longest time. The tail of the queue is that element that has been on
     * the queue the shortest time. New elements are inserted at the tail of the queue, and the queue
     * retrieval operations obtain elements at the head of the queue.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  6. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/SlidingWindow.java

        /**
         * Maintains a fixed size window of elements by sliding the window one element and inserting a new element at the end.
         *
         * @param element The element to add
         */
        void slideAndInsert(T element);
    
        /**
         * Returns a snapshot of the elements in the window.
         *
         * @return collection view of the elements
         */
        Collection<T> snapshot();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/api/internal/collections/ElementSource.java

        int estimatedSize();
    
        boolean contains(Object element);
    
        boolean containsAll(Collection<?> elements);
    
        @Override
        boolean isEmpty();
    
        boolean add(T element);
    
        /**
         * Sets a verifier that specifies whether there is a subscription for
         * elements of a given type. This is used to determine whether a 
         * pending element should be realized upon addition to this source.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 02 15:12:15 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/MoreCollectors.java

      /**
       * A collector that converts a stream of zero or one elements to an {@code Optional}.
       *
       * @throws IllegalArgumentException if the stream consists of two or more elements.
       * @throws NullPointerException if any element in the stream is {@code null}.
       * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not be
       *     {@code null}) and returns {@code Optional.empty()} if it has none.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 13 02:09:05 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
        assertFalse(collection.contains(element));
        assertEquals(originalSize - 1, collection.size());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          Comparator<? super E> comparator, E... elements) {
        checkNotNull(elements);
        switch (elements.length) {
          case 0:
            return emptySet(comparator);
          default:
            SortedSet<E> delegate = new TreeSet<E>(comparator);
            for (E element : elements) {
              checkNotNull(element);
              delegate.add(element);
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 15.3K bytes
    - Viewed (0)
Back to top