Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 231 for subSet (0.79 sec)

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

        SortedSet<String> set = of("e");
        assertTrue(set.subSet("c", "g") instanceof ImmutableSortedSet);
        assertThat(set.subSet("c", "g")).contains("e");
        assertThat(set.subSet("e", "g")).contains("e");
        assertSame(this.<String>of(), set.subSet("f", "g"));
        assertSame(this.<String>of(), set.subSet("c", "e"));
        assertSame(this.<String>of(), set.subSet("c", "d"));
      }
    
      public void testSingle_first() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 45.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThat(set.subSet(1, 4)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.subSet(2, 4)).containsExactly(2, 3).inOrder();
        assertThat(set.subSet(3, 4)).containsExactly(3).inOrder();
        assertThat(set.subSet(3, 3)).isEmpty();
        assertThat(set.subSet(2, 3)).containsExactly(2).inOrder();
        assertThat(set.subSet(1, 3)).containsExactly(1, 2).inOrder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(ImmutableSortedSet.of(4, 6, 8, 10), Sets.subSet(set, Range.atLeast(4)));
        assertEquals(ImmutableSortedSet.of(8, 10), Sets.subSet(set, Range.atLeast(7)));
        assertEquals(empty, Sets.subSet(set, Range.atLeast(20)));
    
        assertEquals(set, Sets.subSet(set, Range.greaterThan(0)));
        assertEquals(ImmutableSortedSet.of(6, 8, 10), Sets.subSet(set, Range.greaterThan(4)));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 47.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

             * greater than tooHigh.
             */
            return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1);
          }
          int tooHigh = set.last() + 1;
          int tooLow = set.first() - 1;
          set.add(tooHigh);
          set.add(tooLow);
          return checkedCreate(set).subSet(tooLow + 1, tooHigh);
        }
      }
    
      @GwtIncompatible // NavigableSet
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This method returns a serializable {@code ImmutableSortedSet}.
       *
       * <p>The {@link SortedSet#subSet} 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ContiguousSet.java

      }
    
      @Override
      public ContiguousSet<C> subSet(C fromElement, C toElement) {
        checkNotNull(fromElement);
        checkNotNull(toElement);
        checkArgument(comparator().compare(fromElement, toElement) <= 0);
        return subSetImpl(fromElement, true, toElement, false);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> subSet(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

             * greater than tooHigh.
             */
            return ContiguousSet.create(Range.openClosed(0, 1), DiscreteDomain.integers()).subSet(0, 1);
          }
          int tooHigh = set.last() + 1;
          int tooLow = set.first() - 1;
          set.add(tooHigh);
          set.add(tooLow);
          return checkedCreate(set).subSet(tooLow + 1, tooHigh);
        }
      }
    
      @GwtIncompatible // NavigableSet
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        disjoint = new Target(disjointList, "disjoint");
        superset = new Target(MinimalCollection.of(e0(), e1(), e2(), e3(), e4()), "superset");
        nonEmptyProperSubset = new Target(MinimalCollection.of(e1()), "subset");
        sameElements = new Target(Arrays.asList(createSamplesArray()), "sameElements");
        containsDuplicates =
            new Target(MinimalCollection.of(e0(), e0(), e3(), e3()), "containsDuplicates");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ContiguousSet.java

      }
    
      @Override
      public ContiguousSet<C> subSet(C fromElement, C toElement) {
        checkNotNull(fromElement);
        checkNotNull(toElement);
        checkArgument(comparator().compare(fromElement, toElement) <= 0);
        return subSetImpl(fromElement, true, toElement, false);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ContiguousSet<C> subSet(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This method returns a serializable {@code ImmutableSortedSet}.
       *
       * <p>The {@link SortedSet#subSet} 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
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top