Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for navigableSet (0.15 sec)

  1. android/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)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. 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));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. 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));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

    @GwtIncompatible
    public final class SafeTreeSet<E> implements Serializable, NavigableSet<E> {
      @SuppressWarnings("unchecked")
      private static final Comparator<Object> NATURAL_ORDER =
          new Comparator<Object>() {
            @Override
            public int compare(Object o1, Object o2) {
              return ((Comparable<Object>) o1).compareTo(o2);
            }
          };
    
      private final NavigableSet<E> delegate;
    
      public SafeTreeSet() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. 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)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingNavigableSet.java

        return descendingIterator().next();
      }
    
      @Override
      public NavigableSet<E> descendingSet() {
        return delegate().descendingSet();
      }
    
      /**
       * A sensible implementation of {@link NavigableSet#descendingSet} in terms of the other methods
       * of {@link NavigableSet}, notably including {@link NavigableSet#descendingIterator}.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  7. android/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<>(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsFilterNavigableSetTest.java

    import java.util.NavigableSet;
    import org.jspecify.annotations.NullUnmarked;
    
    @NullUnmarked
    public final class SetsFilterNavigableSetTest extends AbstractFilteredNavigableSetTest {
      @Override
      NavigableSet<Integer> createUnfiltered(Iterable<Integer> contents) {
        return Sets.newTreeSet(contents);
      }
    
      @Override
      NavigableSet<Integer> filter(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.2K bytes
    - Viewed (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;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

          Collection<E> collection) {
        if (collection instanceof NavigableSet) {
          return unmodifiableNavigableSet((NavigableSet<E>) collection);
        } else {
          return unmodifiableSortedSet((SortedSet<E>) collection);
        }
      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        if (collection instanceof NavigableSet) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Mar 20 13:05:10 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top