Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for tailSet (0.05 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-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThat(set.tailSet(Integer.MIN_VALUE)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.tailSet(1)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.tailSet(2)).containsExactly(2, 3).inOrder();
        assertThat(set.tailSet(3)).containsExactly(3).inOrder();
        assertThat(set.tailSet(Integer.MIN_VALUE, false)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.tailSet(1, false)).containsExactly(2, 3).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. 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)
  5. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThat(set.tailSet(Integer.MIN_VALUE)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.tailSet(1)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.tailSet(2)).containsExactly(2, 3).inOrder();
        assertThat(set.tailSet(3)).containsExactly(3).inOrder();
        assertThat(set.tailSet(Integer.MIN_VALUE, false)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.tailSet(1, false)).containsExactly(2, 3).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ContiguousSet.java

        return subSetImpl(fromElement, fromInclusive, toElement, toInclusive);
      }
    
      @Override
      public ContiguousSet<C> tailSet(C fromElement) {
        return tailSetImpl(checkNotNull(fromElement), true);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> tailSet(C fromElement, boolean inclusive) {
        return tailSetImpl(checkNotNull(fromElement), inclusive);
      }
    
      /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

                .build();
        assertTrue(set.tailSet("california") instanceof ImmutableSortedSet);
        assertTrue(set.tailSet("fish") instanceof ImmutableSortedSet);
        assertThat(set.tailSet("fish")).containsExactly("over", "quick", "jumped").inOrder();
        assertThat(set.tailSet("a"))
            .containsExactly("a", "in", "the", "over", "quick", "jumped")
            .inOrder();
        assertTrue(set.tailSet("california").isEmpty());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. 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)
  9. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

          for (List<Integer> contents : SAMPLE_INPUTS) {
            for (int i = 0; i < 10; i++) {
              assertEquals(
                  filter((C) createUnfiltered(contents).tailSet(i), EVEN),
                  filter(createUnfiltered(contents), EVEN).tailSet(i));
            }
          }
        }
    
        @SuppressWarnings("unchecked")
        public void testSubSet() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

          return emptySet(comparator());
        }
        return tailSet(fromElement, fromInclusive).headSet(toElement, toInclusive);
      }
    
      public ImmutableSortedSet<E> tailSet(E fromElement) {
        checkNotNull(fromElement);
        try {
          return unsafeDelegateSortedSet(sortedDelegate.tailSet(fromElement), true);
        } catch (IllegalArgumentException e) {
          return emptySet(comparator());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top