Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 936 for headSet (0.08 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

        ImmutableSortedSet<Integer> asSet = RANGE_SET_ONE.asSet(DiscreteDomain.integers());
    
        for (int i = 0; i <= 20; i++) {
          assertEquals(asSet.headSet(i, false), expectedSet.headSet(i, false));
          assertEquals(asSet.headSet(i, true), expectedSet.headSet(i, true));
        }
      }
    
      public void testAsSetTailSet() {
        ImmutableSortedSet<Integer> expectedSet = ImmutableSortedSet.of(2, 3, 4, 8, 9, 16, 17);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

              ((SortedSet<E>) unfiltered).subSet(fromElement, toElement), predicate);
        }
    
        @Override
        public SortedSet<E> headSet(@ParametricNullness E toElement) {
          return new FilteredSortedSet<>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
        }
    
        @Override
        public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>The {@link SortedSet#headSet} documentation states that a subset of a subset throws an
       * {@link IllegalArgumentException} if passed a {@code toElement} greater than an earlier {@code
       * toElement}. However, this method doesn't throw an exception in that situation, but instead
       * keeps the original {@code toElement}.
       */
      @Override
      public ImmutableSortedSet<E> headSet(E toElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ContiguousSet.java

        super(Ordering.natural());
        this.domain = domain;
      }
    
      @Override
      public ContiguousSet<C> headSet(C toElement) {
        return headSetImpl(checkNotNull(toElement), false);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> headSet(C toElement, boolean inclusive) {
        return headSetImpl(checkNotNull(toElement), inclusive);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

        @Override
        protected SortedSet<String> create(String[] elements) {
          List<String> list = Lists.newArrayList(elements);
          list.add("zzz");
          return ImmutableSortedSet.copyOf(list).headSet("zzy");
        }
      }
    
      public static class ImmutableSortedSetTailsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

        return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet();
      }
    
      @Override
      ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive) {
        return forward.headSet(fromElement, inclusive).descendingSet();
      }
    
      @Override
      @GwtIncompatible("NavigableSet")
      public ImmutableSortedSet<E> descendingSet() {
        return forward;
      }
    
      @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)
  7. android/guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

        NavigableSet<E> createSubSet(SortedSet<E> sortedSet, E firstExclusive, E lastExclusive) {
          NavigableSet<E> set = (NavigableSet<E>) sortedSet;
          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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>The {@link SortedSet#headSet} documentation states that a subset of a subset throws an
       * {@link IllegalArgumentException} if passed a {@code toElement} greater than an earlier {@code
       * toElement}. However, this method doesn't throw an exception in that situation, but instead
       * keeps the original {@code toElement}.
       */
      @Override
      public ImmutableSortedSet<E> headSet(E toElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

        return forward.subSet(toElement, toInclusive, fromElement, fromInclusive).descendingSet();
      }
    
      @Override
      ImmutableSortedSet<E> tailSetImpl(E fromElement, boolean inclusive) {
        return forward.headSet(fromElement, inclusive).descendingSet();
      }
    
      @Override
      @GwtIncompatible("NavigableSet")
      public ImmutableSortedSet<E> descendingSet() {
        return forward;
      }
    
      @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)
  10. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

        NavigableSet<E> createSubSet(SortedSet<E> sortedSet, E firstExclusive, E lastExclusive) {
          NavigableSet<E> set = (NavigableSet<E>) sortedSet;
          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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top