Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 77 for navigableSet (0.56 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

        resetWithHole();
        assertEquals(null, navigableSet.lower(a));
        assertEquals(a, navigableSet.lower(b));
        assertEquals(a, navigableSet.lower(c));
      }
    
      @CollectionSize.Require(SEVERAL)
      public void testFloorHole() {
        resetWithHole();
        assertEquals(a, navigableSet.floor(a));
        assertEquals(a, navigableSet.floor(b));
        assertEquals(c, navigableSet.floor(c));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 8.5K bytes
    - Click Count (0)
  2. guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

     *
     * @author Louis Wasserman
     */
    @GwtIncompatible
    public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          (o1, o2) -> ((Comparable<Object>) o1).compareTo(o2);
    
      private final NavigableSet<E> delegate;
    
      public SafeTreeSet() {
        this(new TreeSet<E>());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/SortedMultisets.java

        }
    
        @Override
        public NavigableSet<E> headSet(@ParametricNullness E toElement, boolean inclusive) {
          return new NavigableElementSet<>(
              multiset().headMultiset(toElement, BoundType.forBoolean(inclusive)));
        }
    
        @Override
        public NavigableSet<E> tailSet(@ParametricNullness E fromElement, boolean inclusive) {
          return new NavigableElementSet<>(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  4. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

                    return list;
                  }
    
                  @Override
                  public Set<E> create(Object... elements) {
                    NavigableSet<E> navigableSet = (NavigableSet<E>) delegate.create(elements);
                    return navigableSet.descendingSet();
                  }
                })
            .named(parentBuilder.getName() + " descending")
            .withFeatures(features)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 6.2K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/TreeMultimap.java

       */
      @Override
      @GwtIncompatible // NavigableSet
      public NavigableSet<V> get(@ParametricNullness K key) {
        return (NavigableSet<V>) super.get(key);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>Because a {@code TreeMultimap} has unique sorted keys, this method returns a {@link
       * NavigableSet}, instead of the {@link java.util.Set} specified in the {@link Multimap}
       * interface.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/DescendingMultiset.java

          result = Ordering.from(forwardMultiset().comparator()).reverse();
          comparator = result;
        }
        return result;
      }
    
      @LazyInit private transient @Nullable NavigableSet<E> elementSet;
    
      @Override
      public NavigableSet<E> elementSet() {
        NavigableSet<E> result = elementSet;
        if (result == null) {
          return elementSet = new SortedMultisets.NavigableElementSet<>(this);
        }
        return result;
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Sets.java

        }
      }
    
      @GwtIncompatible // NavigableSet
      private static final class FilteredNavigableSet<E extends @Nullable Object>
          extends FilteredSortedSet<E> implements NavigableSet<E> {
        FilteredNavigableSet(NavigableSet<E> unfiltered, Predicate<? super E> predicate) {
          super(unfiltered, predicate);
        }
    
        NavigableSet<E> unfiltered() {
          return (NavigableSet<E>) unfiltered;
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 83K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

      @WeakOuter
      final class WrappedNavigableSet extends WrappedSortedSet implements NavigableSet<V> {
        WrappedNavigableSet(
            @ParametricNullness K key, NavigableSet<V> delegate, @Nullable WrappedCollection ancestor) {
          super(key, delegate, ancestor);
        }
    
        @Override
        NavigableSet<V> getSortedSetDelegate() {
          return (NavigableSet<V>) super.getSortedSetDelegate();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Aug 12 15:51:57 GMT 2025
    - 46.9K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      NavigableSet<E> createElementSet() {
        return unmodifiableNavigableSet(delegate().elementSet());
      }
    
      @Override
      public NavigableSet<E> elementSet() {
        return (NavigableSet<E>) super.elementSet();
      }
    
      @LazyInit private transient @Nullable UnmodifiableSortedMultiset<E> descendingMultiset;
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      }
    
      @Override
      @GwtIncompatible // NavigableSet
      public ImmutableSortedSet<E> descendingSet() {
        return forward;
      }
    
      @Override
      @GwtIncompatible // NavigableSet
      public UnmodifiableIterator<E> descendingIterator() {
        return forward.iterator();
      }
    
      @Override
      @GwtIncompatible // NavigableSet
      ImmutableSortedSet<E> createDescendingSet() {
    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