Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for descending (0.07 sec)

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

          TestSortedSetGenerator<E> delegate, Bound to, Bound from) {
        return using(new NavigableSetSubsetTestSetGenerator<E>(delegate, to, from));
      }
    
      /** Create a suite whose maps are descending views of other maps. */
      private TestSuite createDescendingSuite(
          FeatureSpecificTestSuiteBuilder<?, ? extends OneSizeTestContainerGenerator<Collection<E>, E>>
              parentBuilder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

        List<Feature<?>> features = new ArrayList<>();
        features.add(NoRecurse.DESCENDING);
        features.addAll(parentBuilder.getFeatures());
    
        return subSuiteUsing(new DescendingTestMapGenerator<K, V>(delegate))
            .named(parentBuilder.getName() + " descending")
            .withFeatures(features)
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testDescendingNavigation() {
        List<E> descending = new ArrayList<>();
        for (Iterator<E> i = navigableSet.descendingIterator(); i.hasNext(); ) {
          descending.add(i.next());
        }
        Collections.reverse(descending);
        assertEquals(values, descending);
      }
    
      public void testEmptySubSet() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/NavigableMapTestSuiteBuilder.java

        List<Feature<?>> features = new ArrayList<>();
        features.add(NoRecurse.DESCENDING);
        features.addAll(parentBuilder.getFeatures());
    
        return subSuiteUsing(new DescendingTestMapGenerator<K, V>(delegate))
            .named(parentBuilder.getName() + " descending")
            .withFeatures(features)
            .suppressing(parentBuilder.getSuppressedTests())
            .createTestSuite();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testDescendingNavigation() {
        List<E> descending = new ArrayList<>();
        for (Iterator<E> i = navigableSet.descendingIterator(); i.hasNext(); ) {
          descending.add(i.next());
        }
        Collections.reverse(descending);
        assertEquals(values, descending);
      }
    
      public void testEmptySubSet() {
    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. guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

       */
      enum NoRecurse implements Feature<@Nullable Void> {
        SUBMAP,
        DESCENDING;
    
        @Override
        public Set<Feature<? super @Nullable Void>> getImpliedFeatures() {
          return emptySet();
        }
      }
    
      /**
       * Creates a suite whose map has some elements filtered out of view.
       *
       * <p>Because the map may be ascending or descending, this test must derive the relative order of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SortedMapTestSuiteBuilder.java

       */
      enum NoRecurse implements Feature<@Nullable Void> {
        SUBMAP,
        DESCENDING;
    
        @Override
        public Set<Feature<? super @Nullable Void>> getImpliedFeatures() {
          return emptySet();
        }
      }
    
      /**
       * Creates a suite whose map has some elements filtered out of view.
       *
       * <p>Because the map may be ascending or descending, this test must derive the relative order of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/SortedMultisetTestSuiteBuilder.java

      }
    
      /**
       * To avoid infinite recursion, test suites with these marker features won't have derived suites
       * created for them.
       */
      enum NoRecurse implements Feature<Void> {
        SUBMULTISET,
        DESCENDING;
    
        @Override
        public Set<Feature<? super Void>> getImpliedFeatures() {
          return emptySet();
        }
      }
    
      /** Two bounds (from and to) define how to build a subMultiset. */
      enum Bound {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

      }
    
      @CollectionSize.Require(SEVERAL)
      public void testDescendingNavigation() {
        List<Entry<K, V>> descending = new ArrayList<>(navigableMap.descendingMap().entrySet());
        Collections.reverse(descending);
        assertEquals(entries, descending);
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testHeadMapExclusive() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/MultisetNavigationTester.java

      public void testDescendingNavigation() {
        List<Entry<E>> ascending = new ArrayList<>();
        Iterators.addAll(ascending, sortedMultiset.entrySet().iterator());
        List<Entry<E>> descending = new ArrayList<>();
        Iterators.addAll(descending, sortedMultiset.descendingMultiset().entrySet().iterator());
        Collections.reverse(descending);
        assertEquals(ascending, descending);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top