Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for tailSet (0.07 sec)

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

      }
    
      @Override
      public NavigableSet<E> tailSet(@ParametricNullness E fromElement, boolean inclusive) {
        return delegate().tailSet(fromElement, inclusive);
      }
    
      /**
       * A sensible definition of {@link #tailSet(Object)} in terms of the {@link #tailSet(Object,
       * boolean)} method. If you override {@link #tailSet(Object, boolean)}, you may wish to override
       * {@link #tailSet(Object)} to forward to this implementation.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingSortedSet.java

        return delegate().subSet(fromElement, toElement);
      }
    
      @Override
      public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
        return delegate().tailSet(fromElement);
      }
    
      /**
       * A sensible definition of {@link #contains} in terms of the {@code first()} method of {@link
       * #tailSet}. If you override {@link #tailSet}, you may wish to override {@link #contains} to
       * forward to this implementation.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/SortedMultisets.java

        }
    
        @Override
        public SortedSet<E> headSet(@ParametricNullness E toElement) {
          return multiset().headMultiset(toElement, OPEN).elementSet();
        }
    
        @Override
        public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
          return multiset().tailMultiset(fromElement, CLOSED).elementSet();
        }
    
        @Override
        @ParametricNullness
        public E first() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 5.6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

        return subSet(fromElement, true, toElement, false);
      }
    
      @Override
      public SortedSet<E> tailSet(E fromElement) {
        return tailSet(fromElement, true);
      }
    
      @Override
      public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
        return new SafeTreeSet<>(delegate.tailSet(checkValid(fromElement), inclusive));
      }
    
      @Override
      public Object[] toArray() {
    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-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

          if (from == Bound.NO_BOUND && to == Bound.INCLUSIVE) {
            return set.headSet(lastInclusive, true);
          } else if (from == Bound.EXCLUSIVE && to == Bound.NO_BOUND) {
            return set.tailSet(firstExclusive, false);
          } else if (from == Bound.EXCLUSIVE && to == Bound.EXCLUSIVE) {
            return set.subSet(firstExclusive, false, lastExclusive, false);
          } else if (from == Bound.EXCLUSIVE && to == Bound.INCLUSIVE) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

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

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

          if (from == Bound.NO_BOUND && to == Bound.INCLUSIVE) {
            return set.headSet(lastInclusive, true);
          } else if (from == Bound.EXCLUSIVE && to == Bound.NO_BOUND) {
            return set.tailSet(firstExclusive, false);
          } else if (from == Bound.EXCLUSIVE && to == Bound.EXCLUSIVE) {
            return set.subSet(firstExclusive, false, lastExclusive, false);
          } else if (from == Bound.EXCLUSIVE && to == Bound.INCLUSIVE) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

          return standardPollLast();
        }
    
        @Override
        public SortedSet<T> headSet(T toElement) {
          return standardHeadSet(toElement);
        }
    
        @Override
        public SortedSet<T> tailSet(T fromElement) {
          return standardTailSet(fromElement);
        }
      }
    
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTestSuite(ForwardingNavigableSetTest.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      public void testEmptySubSet() {
        NavigableSet<E> empty = navigableSet.subSet(e0(), false, e0(), false);
        assertEquals(new TreeSet<E>(), empty);
      }
    
      /*
       * TODO(cpovirk): more testing of subSet/headSet/tailSet/descendingSet? and/or generate derived
       * suites?
       */
    
      /**
       * Returns the {@link Method} instances for the test methods in this class that create a set with
    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