Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 367 for headset (0.12 sec)

  1. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThat(set.headSet(1)).isEmpty();
        assertThat(set.headSet(2)).containsExactly(1).inOrder();
        assertThat(set.headSet(3)).containsExactly(1, 2).inOrder();
        assertThat(set.headSet(4)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.headSet(Integer.MAX_VALUE)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.headSet(1, true)).containsExactly(1).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThat(set.headSet(1)).isEmpty();
        assertThat(set.headSet(2)).containsExactly(1).inOrder();
        assertThat(set.headSet(3)).containsExactly(1, 2).inOrder();
        assertThat(set.headSet(4)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.headSet(Integer.MAX_VALUE)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.headSet(1, true)).containsExactly(1).inOrder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        SortedSet<String> set = of("e", "f", "b", "d", "c");
        assertTrue(set.headSet("e") instanceof ImmutableSortedSet);
        assertThat(set.headSet("e")).containsExactly("b", "c", "d").inOrder();
        assertThat(set.headSet("g")).containsExactly("b", "c", "d", "e", "f").inOrder();
        assertSame(this.<String>of(), set.headSet("a"));
        assertSame(this.<String>of(), set.headSet("b"));
      }
    
      public void testOf_tailSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  4. 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).headSet(i), EVEN),
                  filter(createUnfiltered(contents), EVEN).headSet(i));
            }
          }
        }
    
        @SuppressWarnings("unchecked")
        public void testTailSet() {
          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)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        ImmutableSortedSet<E> set = headSet(e, true);
        return !set.isEmpty() ? set.last() : null;
      }
    
      public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
        checkNotNull(toElement);
        if (inclusive) {
          E tmp = higher(toElement);
          if (tmp == null) {
            return this;
          }
          toElement = tmp;
        }
        return headSet(toElement);
      }
    
      public E last() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. 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.headSet(i, false), expectedSet.headSet(i, false));
          assertEquals(asSet.headSet(i, true), expectedSet.headSet(i, true));
        }
      }
    
      public void testAsSetTailSet() {
        ImmutableSortedSet<Integer> expectedSet = ImmutableSortedSet.of(2, 3, 4, 8, 9, 16, 17);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

              ((SortedSet<E>) unfiltered).subSet(fromElement, toElement), predicate);
        }
    
        @Override
        public SortedSet<E> headSet(@ParametricNullness E toElement) {
          return new FilteredSortedSet<>(((SortedSet<E>) unfiltered).headSet(toElement), predicate);
        }
    
        @Override
        public SortedSet<E> tailSet(@ParametricNullness E fromElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>The {@link SortedSet#headSet} documentation states that a subset of a subset throws an
       * {@link IllegalArgumentException} if passed a {@code toElement} greater than an earlier {@code
       * toElement}. However, this method doesn't throw an exception in that situation, but instead
       * keeps the original {@code toElement}.
       */
      @Override
      public ImmutableSortedSet<E> headSet(E toElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  9. 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("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)
  10. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p>The {@link SortedSet#headSet} documentation states that a subset of a subset throws an
       * {@link IllegalArgumentException} if passed a {@code toElement} greater than an earlier {@code
       * toElement}. However, this method doesn't throw an exception in that situation, but instead
       * keeps the original {@code toElement}.
       */
      @Override
      public ImmutableSortedSet<E> headSet(E toElement) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
Back to top