Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 3,297 for Element3 (0.14 sec)

  1. 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;
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableCollection.java

            add(checkNotNull(element));
          }
          return this;
        }
    
        @CanIgnoreReturnValue
        public Builder<E> addAll(Iterator<? extends E> elements) {
          checkNotNull(elements); // for GWT
          while (elements.hasNext()) {
            add(checkNotNull(elements.next()));
          }
          return this;
        }
    
        public abstract ImmutableCollection<E> build();
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/MinMaxPriorityQueue.java

      }
    
      /**
       * Adds the given element to this queue. If this queue has a maximum size, after adding {@code
       * element} the queue will automatically evict its greatest element (according to its comparator),
       * which may be {@code element} itself.
       *
       * @return {@code true} always
       */
      @CanIgnoreReturnValue
      @Override
      public boolean add(E element) {
        offer(element);
        return true;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 34K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/CollectionPropertyInternal.java

         * </p>
         *
         * @param elements The elements to add
         */
        @Incubating
        @SuppressWarnings("unchecked")
        // TODO Use @SafeVarargs and make method final
        void appendAll(T... elements);
    
        /**
         * Adds zero or more elements to the property value.
         *
         * <p>The given iterable will be queried when the value of this property is queried.
         *
         * <p>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 18:32:13 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/LinkedHashMultiset.java

     * according to when the first occurrence of the element was added. When the multiset contains
     * multiple instances of an element, those instances are consecutive in the iteration order. If all
     * occurrences of an element are removed, after which that element is added to the multiset, the
     * element will appear at the end of the iteration.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableCollection.java

        public Builder<E> add(E... elements) {
          for (E element : elements) {
            add(element);
          }
          return this;
        }
    
        /**
         * Adds each element of {@code elements} to the {@code ImmutableCollection} being built.
         *
         * <p>Note that each builder class overrides this method in order to covariantly return its own
         * type.
         *
         * @param elements the elements to add
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. pkg/slices/slices_test.go

    func TestFindFunc(t *testing.T) {
    	emptyElement := []string{}
    	elements := []string{"a", "b", "c"}
    	tests := []struct {
    		name     string
    		elements []string
    		fn       func(string) bool
    		want     *string
    	}{
    		{
    			elements: emptyElement,
    			fn: func(s string) bool {
    				return s == "b"
    			},
    			want: nil,
    		},
    		{
    			elements: elements,
    			fn: func(s string) bool {
    				return s == "bb"
    			},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/concurrent/src/main/java/org/gradle/internal/concurrent/CompositeStoppable.java

            }
        };
        private final List<Stoppable> elements = new ArrayList<Stoppable>();
    
        public CompositeStoppable() {
        }
    
        public static CompositeStoppable stoppable(Object... elements) {
            return new CompositeStoppable().add(elements);
        }
    
        public static CompositeStoppable stoppable(Iterable<?> elements) {
            return new CompositeStoppable().add(elements);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 19:07:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        E[] elements = createSamplesArray();
        E duplicate = elements[(elements.length / 2) - 1];
        elements[(elements.length / 2) + 1] = duplicate;
        return new ArrayWithDuplicate<>(elements, duplicate);
      }
    
      // Helper methods to improve readability of derived classes
    
      protected int getNumElements() {
        return getSubjectGenerator().getCollectionSize().getNumElements();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top