Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for descendingIterator (0.1 sec)

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

                }
              }
              return elemItr.next();
            }
          };
        }
    
        @Override
        @GwtIncompatible("NavigableSet")
        public UnmodifiableIterator<C> descendingIterator() {
          return new AbstractIterator<C>() {
            final Iterator<Range<C>> rangeItr = ranges.reverse().iterator();
            Iterator<C> elemItr = emptyIterator();
    
            @Override
            @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Synchronized.java

        @CheckForNull
        public E ceiling(E e) {
          synchronized (mutex) {
            return delegate().ceiling(e);
          }
        }
    
        @Override
        public Iterator<E> descendingIterator() {
          return delegate().descendingIterator(); // manually synchronized
        }
    
        @CheckForNull transient NavigableSet<E> descendingSet;
    
        @Override
        public NavigableSet<E> descendingSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Synchronized.java

        @CheckForNull
        public E ceiling(E e) {
          synchronized (mutex) {
            return delegate().ceiling(e);
          }
        }
    
        @Override
        public Iterator<E> descendingIterator() {
          return delegate().descendingIterator(); // manually synchronized
        }
    
        @CheckForNull transient NavigableSet<E> descendingSet;
    
        @Override
        public NavigableSet<E> descendingSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SetsTest.java

          iterator.remove();
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          Iterator<Integer> iterator = unmod.descendingIterator();
          iterator.next();
          iterator.remove();
          fail("UnsupportedOperationException expected");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

            final Supplier<String> pathSupplier = () -> {
                final boolean parallel = false;
                return StreamSupport.stream(((Iterable<ActivationFrame>) stk::descendingIterator).spliterator(), parallel)
                        .map(ActivationFrame::location)
                        .collect(Collectors.joining("."));
            };
            final Supplier<InputLocation> locationSupplier = () -> {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
Back to top