Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for tailSet (0.66 sec)

  1. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  2. android/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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  3. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

              sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive));
        }
    
        @Override
        public NavigableSet<K> tailSet(@ParametricNullness K fromElement) {
          return tailSet(fromElement, true);
        }
    
        @Override
        public NavigableSet<K> tailSet(@ParametricNullness K fromElement, boolean inclusive) {
          return new NavigableKeySet(sortedMap().tailMap(fromElement, inclusive));
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 46.6K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  6. 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("\0");
          return ImmutableSortedSet.copyOf(list).tailSet("\0\0");
        }
      }
    
      public static class ImmutableSortedSetSubsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

              sortedMap().subMap(fromElement, fromInclusive, toElement, toInclusive));
        }
    
        @Override
        public NavigableSet<K> tailSet(@ParametricNullness K fromElement) {
          return tailSet(fromElement, true);
        }
    
        @Override
        public NavigableSet<K> tailSet(@ParametricNullness K fromElement, boolean inclusive) {
          return new NavigableKeySet(sortedMap().tailMap(fromElement, inclusive));
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 48K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>The {@link SortedSet#tailSet} documentation states that a subset of a subset throws an
       * {@link IllegalArgumentException} if passed a {@code fromElement} smaller than an earlier {@code
       * fromElement}. However, this method doesn't throw an exception in that situation, but instead
       * keeps the original {@code fromElement}.
       */
      @Override
      public ImmutableSortedSet<E> tailSet(E fromElement) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  10. 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("\0");
          return ImmutableSortedSet.copyOf(list).tailSet("\0\0");
        }
      }
    
      public static class ImmutableSortedSetSubsetGenerator extends TestStringSortedSetGenerator {
        @Override
        protected SortedSet<String> create(String[] elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top