Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for tailSet (0.16 sec)

  1. 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() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertSame(this.<String>of(), set.headSet("e"));
      }
    
      public void testSingle_tailSet() {
        SortedSet<String> set = of("e");
        assertTrue(set.tailSet("c") instanceof ImmutableSortedSet);
        assertThat(set.tailSet("c")).contains("e");
        assertThat(set.tailSet("e")).contains("e");
        assertSame(this.<String>of(), set.tailSet("g"));
      }
    
      public void testSingle_subSet() {
        SortedSet<String> set = of("e");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  3. 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.tailSet(i, false), expectedSet.tailSet(i, false));
          assertEquals(asSet.tailSet(i, true), expectedSet.tailSet(i, true));
        }
      }
    
      public void testAsSetSubSet() {
        ImmutableSortedSet<Integer> expectedSet = ImmutableSortedSet.of(2, 3, 4, 8, 9, 16, 17);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  4. 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) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertSame(this.<String>of(), set.headSet("e"));
      }
    
      public void testSingle_tailSet() {
        SortedSet<String> set = of("e");
        assertTrue(set.tailSet("c") instanceof ImmutableSortedSet);
        assertThat(set.tailSet("c")).contains("e");
        assertThat(set.tailSet("e")).contains("e");
        assertSame(this.<String>of(), set.tailSet("g"));
      }
    
      public void testSingle_subSet() {
        SortedSet<String> set = of("e");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 45.2K bytes
    - Viewed (0)
  6. 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);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 53.4K bytes
    - Viewed (0)
  7. 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());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  8. 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);
      }
    
      /*
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  9. 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.tailSet(i, false), expectedSet.tailSet(i, false));
          assertEquals(asSet.tailSet(i, true), expectedSet.tailSet(i, true));
        }
      }
    
      public void testAsSetSubSet() {
        ImmutableSortedSet<Integer> expectedSet = ImmutableSortedSet.of(2, 3, 4, 8, 9, 16, 17);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

          return new FilteredSortedSet<>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
        }
    
        @Override
        public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
          return new FilteredSortedSet<>(((SortedSet<E>) unfiltered).tailSet(fromElement), predicate);
        }
    
        @Override
        @ParametricNullness
        public E first() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
Back to top