Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K 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/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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. 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)
  8. android/guava/src/com/google/common/collect/Synchronized.java

        }
    
        @Override
        public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
          synchronized (mutex) {
            return Synchronized.navigableSet(delegate().tailSet(fromElement, inclusive), mutex);
          }
        }
    
        @Override
        public SortedSet<E> tailSet(E fromElement) {
          return tailSet(fromElement, true);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Synchronized.java

        }
    
        @Override
        public NavigableSet<E> tailSet(E fromElement, boolean inclusive) {
          synchronized (mutex) {
            return Synchronized.navigableSet(delegate().tailSet(fromElement, inclusive), mutex);
          }
        }
    
        @Override
        public SortedSet<E> tailSet(E fromElement) {
          return tailSet(fromElement, true);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K 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: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top