Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 768 for eleven (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

        assertEquals("Should be able to peek() at first element", "A", peekingIterator.peek());
        assertEquals(
            "Should be able to peek() first element multiple times", "A", peekingIterator.peek());
        assertEquals(
            "next() should still return first element after peeking", "A", peekingIterator.next());
    
        assertEquals("Should be able to peek() at middle element", "B", peekingIterator.peek());
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  2. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

       */
      @CanIgnoreReturnValue // pushed down from class to method
      @Override
      public boolean add(E e) {
        return offer(e);
      }
    
      /**
       * Inserts the specified element into this priority queue.
       *
       * @param e the element to add
       * @return {@code true} (as specified by {@link Queue#offer})
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/SingletonImmutableSet.java

      final transient E element;
    
      SingletonImmutableSet(E element) {
        this.element = Preconditions.checkNotNull(element);
      }
    
      @Override
      public int size() {
        return 1;
      }
    
      @Override
      public boolean contains(@Nullable Object target) {
        return element.equals(target);
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/Iterables.java

       * stream.filter(element::equals).count()}. If {@code element} might be null, use {@code
       * stream.filter(Predicate.isEqual(element)).count()} instead.
       *
       * @see java.util.Collections#frequency(Collection, Object) Collections.frequency(Collection,
       *     Object)
       */
      public static int frequency(Iterable<?> iterable, @Nullable Object element) {
        if ((iterable instanceof Multiset)) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 43.6K bytes
    - Click Count (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        Iterator<E> iterator = collection.iterator();
        Object element = iterator.next();
        // If it's an Entry, it may become invalid once it's removed from the Map. Copy it.
        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/MoreCollectors.java

        ToOptionalState<T> combine(ToOptionalState<T> other) {
          if (element == null) {
            return other;
          } else if (other.element == null) {
            return this;
          } else {
            if (extras.isEmpty()) {
              // Replace immutable empty list with mutable list.
              extras = new ArrayList<>();
            }
            extras.add(other.element);
            extras.addAll(other.extras);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/SortedLists.java

        /**
         * Return the index of the next lower element in the list, or {@code -1} if there is no such
         * element.
         */
        NEXT_LOWER {
          @Override
          int resultIndex(int higherIndex) {
            return higherIndex - 1;
          }
        },
        /**
         * Return the index of the next higher element in the list, or {@code list.size()} if there is
         * no such element.
         */
        NEXT_HIGHER {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 10.9K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultiset.java

          }
          buildInvoked = false;
          checkNotNull(element);
          contents.put(element, occurrences + contents.get(element));
          return this;
        }
    
        /**
         * Adds or removes the necessary occurrences of an element such that the element attains the
         * desired count.
         *
         * @param element the element to add or remove occurrences of
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        assertEquals("Should be able to peek() at first element", "A", peekingIterator.peek());
        assertEquals(
            "Should be able to peek() first element multiple times", "A", peekingIterator.peek());
        assertEquals(
            "next() should still return first element after peeking", "A", peekingIterator.next());
    
        assertEquals("Should be able to peek() at middle element", "B", peekingIterator.peek());
        assertEquals(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      @Override
      public @Nullable E lower(E element) {
        return forward.higher(element);
      }
    
      @Override
      public @Nullable E floor(E element) {
        return forward.ceiling(element);
      }
    
      @Override
      public @Nullable E ceiling(E element) {
        return forward.floor(element);
      }
    
      @Override
      public @Nullable E higher(E element) {
        return forward.lower(element);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 3.2K bytes
    - Click Count (0)
Back to Top