Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 406 for Clement (0.21 sec)

  1. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

          for (int i = 0; i < 100; i++) {
            Element element = Element.values()[random.nextInt(range)];
            elements.add(element);
            queue.add(element);
          }
          Iterator<Element> queueIterator = queue.iterator();
          int remaining = queue.size();
          while (queueIterator.hasNext()) {
            Element element = queueIterator.next();
            remaining--;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableMultiset.java

         *
         * @param elements the elements to add
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code elements} is null or contains a null element
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E... elements) {
          super.add(elements);
          return this;
        }
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multiset.java

       * #add(Object, int) add}{@code (element, 1)} instead.
       *
       * @param element the element to add one occurrence of; may be null only if explicitly allowed by
       *     the implementation
       * @return {@code true} always, since this call is required to modify the multiset, unlike other
       *     {@link Collection} types
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

       * @since 3.0
       */
      public static <E> ImmutableList<E> copyOf(E[] elements) {
        switch (elements.length) {
          case 0:
            return of();
          case 1:
            return of(elements[0]);
          default:
            return construct(elements.clone());
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  5. guava/src/com/google/common/collect/ImmutableSortedSet.java

            if (newLength > elements.length) {
              elements = Arrays.copyOf(elements, newLength);
            }
          }
          elements[n++] = element;
          return this;
        }
    
        /**
         * Adds each element of {@code elements} to the {@code ImmutableSortedSet}, ignoring duplicate
         * elements (only the first duplicate element is added).
         *
         * @param elements the elements to add
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

          return unfiltered.add(element, occurrences);
        }
    
        @Override
        public int remove(@CheckForNull Object element, int occurrences) {
          checkNonnegative(occurrences, "occurrences");
          if (occurrences == 0) {
            return count(element);
          } else {
            return contains(element) ? unfiltered.remove(element, occurrences) : 0;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 41.6K bytes
    - Viewed (0)
  7. android/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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        @Override
        public Builder<E> add(E... elements) {
          for (E element : elements) {
            add(element);
          }
          return this;
        }
    
        /**
         * Adds a number of occurrences of an element to this {@code ImmutableSortedMultiset}.
         *
         * @param element the element to add
         * @param occurrences the number of occurrences of the element to add. May be zero, in which
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

        public Builder<E> add(E element) {
          super.add(element);
          return this;
        }
    
        /**
         * Adds each element of {@code elements} to the {@code ImmutableSortedSet}, ignoring duplicate
         * elements (only the first duplicate element is added).
         *
         * @param elements the elements to add
         * @return this {@code Builder} object
         * @throws NullPointerException if {@code elements} contains a null element
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 36.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

          Iterable<? extends @Nullable Object> iterable, @CheckForNull Object element) {
        if (iterable instanceof Collection) {
          Collection<?> collection = (Collection<?>) iterable;
          return Collections2.safeContains(collection, element);
        }
        return Iterators.contains(iterable.iterator(), element);
      }
    
      /**
       * Removes, from an iterable, every element that belongs to the provided collection.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
Back to top