Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for DescendingSet (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

        @Override
        protected SortedSet<String> create(String[] elements) {
          return ImmutableSortedSet.<String>reverseOrder().add(elements).build().descendingSet();
        }
      }
    
      public static class ImmutableSortedSetExplicitComparator extends TestStringSetGenerator {
    
        private static final Comparator<String> STRING_REVERSED = Collections.reverseOrder();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

        @Override
        protected SortedSet<String> create(String[] elements) {
          return ImmutableSortedSet.<String>reverseOrder().add(elements).build().descendingSet();
        }
      }
    
      public static class ImmutableSortedSetExplicitComparator extends TestStringSetGenerator {
    
        private static final Comparator<String> STRING_REVERSED = Collections.reverseOrder();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            NavigableSet<Integer> filtered = filter(createUnfiltered(contents), EVEN);
            NavigableSet<Integer> unfiltered = createUnfiltered(filtered);
    
            assertThat(filtered.descendingSet())
                .containsExactlyElementsIn(unfiltered.descendingSet())
                .inOrder();
          }
        }
    
        public void testPollFirst() {
          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)
  4. guava/src/com/google/common/collect/ImmutableSortedSet.java

      @CheckForNull
      transient ImmutableSortedSet<E> descendingSet;
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ImmutableSortedSet<E> descendingSet() {
        // racy single-check idiom
        ImmutableSortedSet<E> result = descendingSet;
        if (result == null) {
          result = descendingSet = createDescendingSet();
          result.descendingSet = this;
        }
        return result;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      @CheckForNull
      transient ImmutableSortedSet<E> descendingSet;
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ImmutableSortedSet<E> descendingSet() {
        // racy single-check idiom
        ImmutableSortedSet<E> result = descendingSet;
        if (result == null) {
          result = descendingSet = createDescendingSet();
          result.descendingSet = this;
        }
        return result;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/SetsTest.java

        /* Unmodifiable is a view. */
        mod.add(4);
        assertTrue(unmod.contains(4));
        assertTrue(unmod.descendingSet().contains(4));
    
        ensureNotDirectlyModifiable(unmod);
        ensureNotDirectlyModifiable(unmod.descendingSet());
        ensureNotDirectlyModifiable(unmod.headSet(2));
        ensureNotDirectlyModifiable(unmod.headSet(2, true));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

                  .createTestSuite());
    
          suite.addTest(
              NavigableSetTestSuiteBuilder.using(new ContiguousSetDescendingGenerator())
                  .named("Range.asSet.descendingSet")
                  .withFeatures(
                      CollectionSize.ANY,
                      KNOWN_ORDER,
                      ALLOWS_NULL_QUERIES,
                      NON_STANDARD_TOSTRING,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

                  .createTestSuite());
    
          suite.addTest(
              NavigableSetTestSuiteBuilder.using(new ContiguousSetDescendingGenerator())
                  .named("Range.asSet.descendingSet")
                  .withFeatures(
                      CollectionSize.ANY,
                      KNOWN_ORDER,
                      ALLOWS_NULL_QUERIES,
                      NON_STANDARD_TOSTRING,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

                .createTestSuite());
    
        suite.addTest(
            ListTestSuiteBuilder.using(new ImmutableSortedSetDescendingAsListGenerator())
                .named("ImmutableSortedSet.descendingSet.asList")
                .withFeatures(
                    CollectionSize.ANY,
                    CollectionFeature.REJECTS_DUPLICATES_AT_CREATION,
                    CollectionFeature.SERIALIZABLE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
Back to top