Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,182 for Clements (0.21 sec)

  1. android/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 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 22.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/FluentIterable.java

       * Returns a fluent iterable whose iterators traverse first the elements of this fluent iterable,
       * followed by {@code elements}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code Stream.concat(thisStream, Stream.of(elements))}.
       *
       * @since 18.0
       */
      public final FluentIterable<E> append(E... elements) {
        return FluentIterable.concat(getDelegate(), Arrays.asList(elements));
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/collect/ImmutableSet.java

            others.length <= Integer.MAX_VALUE - 6, "the total number of elements must fit in an int");
        final int paramCount = 6;
        Object[] elements = new Object[paramCount + others.length];
        elements[0] = e1;
        elements[1] = e2;
        elements[2] = e3;
        elements[3] = e4;
        elements[4] = e5;
        elements[5] = e6;
        System.arraycopy(others, 0, elements, paramCount, others.length);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        assertEquals("Should have removed an element", 2, list.size());
        assertFalse("Second element should be gone", list.contains("B"));
      }
    
      static class ThrowsAtEndException extends RuntimeException {
        /* nothing */
      }
    
      /**
       * This Iterator claims to have more elements than the underlying iterable, but when you try to
       * fetch the extra elements, it throws an unchecked exception.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        assertEquals("Should have removed an element", 2, list.size());
        assertFalse("Second element should be gone", list.contains("B"));
      }
    
      static class ThrowsAtEndException extends RuntimeException {
        /* nothing */
      }
    
      /**
       * This Iterator claims to have more elements than the underlying iterable, but when you try to
       * fetch the extra elements, it throws an unchecked exception.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. android/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 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

          return standardAddAll(collection);
        }
    
        @Override
        public boolean add(T element) {
          return standardAdd(element);
        }
    
        @Override
        public void clear() {
          standardClear();
        }
    
        @Override
        public int count(Object element) {
          return standardCount(element);
        }
    
        @Override
        public boolean contains(Object object) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 11.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableList.java

        // We special-case for 0 or 1 elements, but going further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
        } else {
          return new ImmutableList.Builder<E>().add(first).addAll(elements).build();
        }
      }
    
      /**
       * Returns an immutable list containing the given elements, in order.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 27K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

      @JsMethod(name = "of")
      static <E> ImmutableSet<E> jsOf(E... elements) {
        return copyOf(elements);
      }
    
      @JsMethod
      public static <E> ImmutableSet<E> copyOf(E[] elements) {
        checkNotNull(elements);
        switch (elements.length) {
          case 0:
            return of();
          case 1:
            return of(elements[0]);
          default:
            return create(elements);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top