Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 865 for element (0.17 sec)

  1. 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)
  2. android/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;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectArrays.java

      /**
       * Returns a new array that prepends {@code element} to {@code array}.
       *
       * @param element the element to prepend to the front of {@code array}
       * @param array the array of elements to append
       * @return an array whose size is one larger than {@code array}, with {@code element} occupying
       *     the first position, and the elements of {@code array} occupying the remaining elements.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocConverter.java

                listener.warning(String.format("Unsupported HTML element <%s>", elementName));
                Element element = document.createElement("UNHANDLED-ELEMENT");
                element.appendChild(document.createTextNode(String.format("<%s>", elementName)));
                nodes.push(element);
                return true;
            }
    
            @Override
            public void onText(String text) {
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 29.3K 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
    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. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableSet.java

      // This reference is used both by the custom field serializer, and by the
      // GWT compiler to infer the elements of the lists that needs to be
      // serialized.
      //
      // Although this reference is non-final, it doesn't change after set creation.
      E element;
    
      SingletonImmutableSet(E element) {
        this.element = checkNotNull(element);
      }
    
      @Override
      public int size() {
        return 1;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        public int count(@Nullable Object element) {
          for (Entry<E> entry : entrySet()) {
            if (Objects.equal(entry.getElement(), element)) {
              return entry.getCount();
            }
          }
          return 0;
        }
    
        @Override
        public int add(E element, int occurrences) {
          checkArgument(occurrences >= 0);
          Integer frequency = backingMap.get(element);
          if (frequency == null) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

        public int count(@Nullable Object element) {
          for (Entry<E> entry : entrySet()) {
            if (Objects.equal(entry.getElement(), element)) {
              return entry.getCount();
            }
          }
          return 0;
        }
    
        @Override
        public int add(E element, int occurrences) {
          checkArgument(occurrences >= 0);
          Integer frequency = backingMap.get(element);
          if (frequency == null) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        /**
         * 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(@Nullable Object element) {
          try {
            return unbox(countMap.get(element));
          } catch (NullPointerException | ClassCastException e) {
            return 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  10. 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)
Back to top