Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for descendingIterator (0.16 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava/src/com/google/common/collect/RegularContiguousSet.java

            return equalsOrThrow(previous, last) ? null : domain.next(previous);
          }
        };
      }
    
      @GwtIncompatible // NavigableSet
      @Override
      public UnmodifiableIterator<C> descendingIterator() {
        return new AbstractSequentialIterator<C>(last()) {
          final C first = first();
    
          @Override
          @CheckForNull
          protected C computeNext(C previous) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. android/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
    - 36.9K bytes
    - Viewed (0)
Back to top