Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 936 for headSet (0.05 sec)

  1. android/guava/src/com/google/common/collect/Synchronized.java

          }
        }
    
        @Override
        public NavigableSet<E> headSet(E toElement, boolean inclusive) {
          synchronized (mutex) {
            return Synchronized.navigableSet(delegate().headSet(toElement, inclusive), mutex);
          }
        }
    
        @Override
        public SortedSet<E> headSet(E toElement) {
          return headSet(toElement, false);
        }
    
        @Override
        @CheckForNull
    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> headSet(E toElement, boolean inclusive) {
          synchronized (mutex) {
            return Synchronized.navigableSet(delegate().headSet(toElement, inclusive), mutex);
          }
        }
    
        @Override
        public SortedSet<E> headSet(E toElement) {
          return headSet(toElement, false);
        }
    
        @Override
        @CheckForNull
    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 standardPollFirst();
        }
    
        @Override
        public @Nullable T pollLast() {
          return standardPollLast();
        }
    
        @Override
        public SortedSet<T> headSet(T toElement) {
          return standardHeadSet(toElement);
        }
    
        @Override
        public SortedSet<T> tailSet(T fromElement) {
          return standardTailSet(fromElement);
        }
      }
    
    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. 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("zzz");
          return ImmutableSortedSet.copyOf(list).headSet("zzy");
        }
      }
    
      public static class ImmutableSortedSetTailsetGenerator 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)
  5. 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)
  6. android/guava/src/com/google/common/collect/Maps.java

          }
    
          @Override
          public SortedSet<E> headSet(@ParametricNullness E toElement) {
            return removeOnlySortedSet(super.headSet(toElement));
          }
    
          @Override
          public NavigableSet<E> headSet(@ParametricNullness E toElement, boolean inclusive) {
            return removeOnlyNavigableSet(super.headSet(toElement, 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> headSet(@ParametricNullness E toElement) {
            return removeOnlySortedSet(super.headSet(toElement));
          }
    
          @Override
          public NavigableSet<E> headSet(@ParametricNullness E toElement, boolean inclusive) {
            return removeOnlyNavigableSet(super.headSet(toElement, 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("a", elementSet.first());
        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();
      }
    
    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(null, keySet.first());
        assertEquals("google", keySet.last());
        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
    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