Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 412 for element (0.45 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      /**
       * Inserts the specified element into this priority queue.
       *
       * @param e the element to add
       * @return {@code true} (as specified by {@link Queue#offer})
       * @throws ClassCastException if the specified element cannot be compared with elements currently
       *     in the priority queue according to the priority queue's ordering
       * @throws NullPointerException if the specified element is null
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  2. 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 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 42.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ForwardingMultiset.java

      @Override
      public int count(@CheckForNull Object element) {
        return delegate().count(element);
      }
    
      @CanIgnoreReturnValue
      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        return delegate().add(element, occurrences);
      }
    
      @CanIgnoreReturnValue
      @Override
      public int remove(@CheckForNull Object element, int occurrences) {
        return delegate().remove(element, occurrences);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 10.4K bytes
    - Viewed (0)
  4. 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.
     *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Collections2.java

        }
    
        @Override
        public boolean add(@ParametricNullness E element) {
          checkArgument(predicate.apply(element));
          return unfiltered.add(element);
        }
    
        @Override
        public boolean addAll(Collection<? extends E> collection) {
          for (E element : collection) {
            checkArgument(predicate.apply(element));
          }
          return unfiltered.addAll(collection);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  6. 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)
  7. src/main/java/org/codelibs/core/collection/SLinkedList.java

        /**
         * 先頭に追加します。
         *
         * @param element
         *            追加するオブジェクト
         */
        public void addFirst(final E element) {
            header.next.addBefore(element);
        }
    
        /**
         * 最後に追加します。
         *
         * @param element
         *            追加するオブジェクト
         */
        public void addLast(final E element) {
            header.addBefore(element);
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 11K bytes
    - Viewed (1)
  8. guava-tests/test/com/google/common/collect/TableCollectionTest.java

                        List<Integer> columnKeys = Lists.newArrayList();
                        for (Object element : elements) {
                          @SuppressWarnings("unchecked")
                          Cell<String, Integer, Character> cell =
                              (Cell<String, Integer, Character>) element;
                          columnKeys.add(cell.getColumnKey());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/xml/DomUtil.java

        }
    
        /**
         * {@link Element}を文字列に変換します。
         *
         * @param element
         *            要素。{@literal null}であってはいけません
         * @return 変換された文字列
         */
        public static String toString(final Element element) {
            assertArgumentNotNull("element", element);
    
            final StringBuilder buf = new StringBuilder(1000);
            appendElement(element, buf);
            return new String(buf);
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableCollection.java

         * @throws NullPointerException if {@code elements} is null or contains a null element
         */
        @CanIgnoreReturnValue
        public Builder<E> addAll(Iterable<? extends E> elements) {
          for (E element : elements) {
            add(element);
          }
          return this;
        }
    
        /**
         * Adds each element of {@code elements} to the {@code ImmutableCollection} being built.
         *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.5K bytes
    - Viewed (0)
Back to top