Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 46 for tailSet (0.11 sec)

  1. 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)
  2. 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)
  3. android/guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

          return standardPollLast();
        }
    
        @Override
        public SortedSet<T> headSet(T toElement) {
          return standardHeadSet(toElement);
        }
    
        @Override
        public SortedSet<T> tailSet(T fromElement) {
          return standardTailSet(fromElement);
        }
      }
    
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
        suite.addTestSuite(ForwardingNavigableSetTest.class);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      public void testEmptySubSet() {
        NavigableSet<E> empty = navigableSet.subSet(e0(), false, e0(), false);
        assertEquals(new TreeSet<E>(), empty);
      }
    
      /*
       * TODO(cpovirk): more testing of subSet/headSet/tailSet/descendingSet? and/or generate derived
       * suites?
       */
    
      /**
       * Returns the {@link Method} instances for the test methods in this class that create a set with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. 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)
  6. android/guava/src/com/google/common/collect/Maps.java

          }
    
          @Override
          public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
            return removeOnlySortedSet(super.tailSet(fromElement));
          }
    
          @Override
          public NavigableSet<E> tailSet(@ParametricNullness E fromElement, boolean inclusive) {
            return removeOnlyNavigableSet(super.tailSet(fromElement, inclusive));
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Maps.java

          }
    
          @Override
          public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
            return removeOnlySortedSet(super.tailSet(fromElement));
          }
    
          @Override
          public NavigableSet<E> tailSet(@ParametricNullness E fromElement, boolean inclusive) {
            return removeOnlyNavigableSet(super.tailSet(fromElement, inclusive));
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        assertEquals("c", elementSet.last());
        assertEquals(Ordering.natural(), elementSet.comparator());
    
        assertThat(elementSet.headSet("b")).containsExactly("a");
        assertThat(elementSet.tailSet("b")).containsExactly("b", "c").inOrder();
        assertThat(elementSet.subSet("a", "c")).containsExactly("a", "b").inOrder();
      }
    
      public void testElementSetSubsetRemove() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      public void testEmptySubSet() {
        NavigableSet<E> empty = navigableSet.subSet(e0(), false, e0(), false);
        assertEquals(new TreeSet<E>(), empty);
      }
    
      /*
       * TODO(cpovirk): more testing of subSet/headSet/tailSet/descendingSet? and/or generate derived
       * suites?
       */
    
      /**
       * Returns the {@link Method} instances for the test methods in this class that create a set with
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

        assertEquals(StringLength.COMPARATOR, keySet.comparator());
        assertEquals(Sets.<@Nullable String>newHashSet(null, "tree"), keySet.headSet("yahoo"));
        assertEquals(newHashSet("google"), keySet.tailSet("yahoo"));
        assertEquals(newHashSet("tree"), keySet.subSet("ask", "yahoo"));
      }
    
      @GwtIncompatible // SerializableTester
      public void testExplicitComparatorSerialization() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top