Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for EntryComparator (0.15 sec)

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

        List<Entry<K, V>> entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = entries.get(0);
          if (entries.size() >= 3) {
            c = entries.get(2);
          }
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

          iterator.next();
        }
        return iterator.next();
      }
    
      private static class EntryComparator<K extends @Nullable Object, V extends @Nullable Object>
          implements Comparator<Entry<K, V>> {
        final @Nullable Comparator<? super K> keyComparator;
    
        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

        List<Entry<K, V>> entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = entries.get(0);
          if (entries.size() >= 3) {
            c = entries.get(2);
          }
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        final K lastInclusive;
        private final Comparator<Entry<K, V>> entryComparator;
    
        public SortedMapSubmapTestMapGenerator(
            TestSortedMapGenerator<K, V> delegate, Bound to, Bound from) {
          super(delegate);
          this.to = to;
          this.from = from;
    
          SortedMap<K, V> emptyMap = delegate.create();
          this.entryComparator = entryComparator(emptyMap.comparator());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/Helpers.java

          iterator.next();
        }
        return iterator.next();
      }
    
      private static class EntryComparator<K extends @Nullable Object, V extends @Nullable Object>
          implements Comparator<Entry<K, V>> {
        final @Nullable Comparator<? super K> keyComparator;
    
        public EntryComparator(@Nullable Comparator<? super K> keyComparator) {
          this.keyComparator = keyComparator;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                          List<Entry<String, String>> insertionOrder) {
                        sort(
                            insertionOrder,
                            Helpers.<String, String>entryComparator(NullsBeforeTwo.INSTANCE));
                        return insertionOrder;
                      }
                    })
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/collect/testing/SafeTreeMapTest.java

                          List<Entry<String, String>> insertionOrder) {
                        sort(
                            insertionOrder,
                            Helpers.<String, String>entryComparator(NullsBeforeTwo.INSTANCE));
                        return insertionOrder;
                      }
                    })
                .withFeatures(
                    CollectionSize.ANY,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 18:06:40 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableMapNavigationTester.java

        entries =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(entries, Helpers.<K, V>entryComparator(navigableMap.comparator()));
    
        // some tests assume SEVERAL == 3
        if (entries.size() >= 1) {
          a = entries.get(0);
          if (entries.size() >= 3) {
            b = entries.get(1);
            c = entries.get(2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top