Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for descendingIterator (0.09 sec)

  1. android/guava/src/com/google/common/collect/ForwardingNavigableSet.java

      }
    
      /**
       * A sensible definition of {@link #pollLast} in terms of the {@code descendingIterator} method.
       * If you override {@link #descendingIterator} you may wish to override {@link #pollLast} to
       * forward to this implementation.
       */
      @CheckForNull
      protected E standardPollLast() {
        return Iterators.pollNext(descendingIterator());
      }
    
      @ParametricNullness
      protected E standardFirst() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java

        @Override
        public E pop() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.pop();
        }
    
        @Override
        public Iterator<E> descendingIterator() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.descendingIterator();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      @SuppressWarnings("CheckReturnValue")
      public void testHoldsLockOnAllOperations() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

        return forward.contains(object);
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return forward.descendingIterator();
      }
    
      @Override
      ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
        return forward.tailSet(toElement, inclusive).descendingSet();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

      }
    
      @Override
      public boolean containsAll(Collection<?> c) {
        return delegate.containsAll(c);
      }
    
      @Override
      public Iterator<E> descendingIterator() {
        return delegate.descendingIterator();
      }
    
      @Override
      public NavigableSet<E> descendingSet() {
        return new SafeTreeSet<>(delegate.descendingSet());
      }
    
      @Override
      public E first() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

        return forward.contains(object);
      }
    
      @Override
      public int size() {
        return forward.size();
      }
    
      @Override
      public UnmodifiableIterator<E> iterator() {
        return forward.descendingIterator();
      }
    
      @Override
      ImmutableSortedSet<E> headSetImpl(E toElement, boolean inclusive) {
        return forward.tailSet(toElement, inclusive).descendingSet();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingDeque.java

        delegate().addFirst(e);
      }
    
      @Override
      public void addLast(@ParametricNullness E e) {
        delegate().addLast(e);
      }
    
      @Override
      public Iterator<E> descendingIterator() {
        return delegate().descendingIterator();
      }
    
      @Override
      @ParametricNullness
      public E getFirst() {
        return delegate().getFirst();
      }
    
      @Override
      @ParametricNullness
      public E getLast() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 13 14:30:51 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/SortedMultisets.java

        }
    
        @Override
        public NavigableSet<E> descendingSet() {
          return new NavigableElementSet<>(multiset().descendingMultiset());
        }
    
        @Override
        public Iterator<E> descendingIterator() {
          return descendingSet().iterator();
        }
    
        @Override
        @CheckForNull
        public E pollFirst() {
          return getElementOrNull(multiset().pollFirstEntry());
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

        }
    
        @Override
        public Iterator<E> descendingIterator() {
          return Iterators.filter(unfiltered().descendingIterator(), predicate);
        }
    
        @Override
        @ParametricNullness
        public E last() {
          return Iterators.find(unfiltered().descendingIterator(), predicate);
        }
    
        @Override
        public NavigableSet<E> subSet(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedSet.java

      @Override
      @CheckForNull
      public E lower(E e) {
        return Iterators.<@Nullable E>getNext(headSet(e, false).descendingIterator(), null);
      }
    
      /** @since 12.0 */
      @Override
      @CheckForNull
      public E floor(E e) {
        return Iterators.<@Nullable E>getNext(headSet(e, true).descendingIterator(), null);
      }
    
      /** @since 12.0 */
      @Override
      @CheckForNull
      public E ceiling(E e) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testDescendingNavigation() {
        List<E> descending = new ArrayList<>();
        for (Iterator<E> i = navigableSet.descendingIterator(); i.hasNext(); ) {
          descending.add(i.next());
        }
        Collections.reverse(descending);
        assertEquals(values, descending);
      }
    
      public void testEmptySubSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top