Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 224 for comparators (0.09 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultClasspathTransformation.java

                    return;
                }
    
                cpc.add(md);
                //
                //            TreeSet<MetadataGraphEdge> deps = new TreeSet<MetadataGraphEdge>(
                //                        new Comparator<MetadataGraphEdge>()
                //                        {
                //                            public int compare( MetadataGraphEdge e1
                //                                              , MetadataGraphEdge e2
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Longs.java

       * example, {@code [] < [1L] < [1L, 2L] < [2L]}.
       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(long[],
       * long[])}.
       *
       * @since 2.0
       */
      public static Comparator<long[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Longs.java

       * example, {@code [] < [1L] < [1L, 2L] < [2L]}.
       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link Arrays#equals(long[],
       * long[])}.
       *
       * @since 2.0
       */
      public static Comparator<long[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 29K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

       * HashMultimap#create()}, {@link LinkedHashMultimap#create()}, {@link
       * LinkedListMultimap#create()}, {@link TreeMultimap#create()}, and {@link
       * TreeMultimap#create(Comparator, Comparator)} won't suffice.
       *
       * <p>Note: the multimap assumes complete ownership over of {@code map} and the collections
       * returned by {@code factory}. Those objects should not be manually updated and they should not
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import java.nio.FloatBuffer;
    import java.nio.IntBuffer;
    import java.nio.LongBuffer;
    import java.nio.ShortBuffer;
    import java.nio.charset.Charset;
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.Currency;
    import java.util.HashMap;
    import java.util.HashSet;
    import java.util.LinkedHashMap;
    import java.util.LinkedHashSet;
    import java.util.LinkedList;
    import java.util.List;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/NavigableSetNavigationTester.java

        values =
            copyToList(
                getSubjectGenerator()
                    .getSampleElements(getSubjectGenerator().getCollectionSize().getNumElements()));
        sort(values, navigableSet.comparator());
    
        // some tests assume SEVERAL == 3
        if (values.size() >= 1) {
          a = values.get(0);
          if (values.size() >= 3) {
            b = values.get(1);
            c = values.get(2);
          }
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

        }
      }
    
      /**
       * Returns an immutable map containing the same entries as {@code map}. If {@code map} somehow
       * contains entries with duplicate keys (for example, if it is a {@code SortedMap} whose
       * comparator is not <i>consistent with equals</i>), the results of this method are undefined.
       *
       * <p><b>Note:</b> Despite what the method name suggests, if {@code map} is an {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

          }
        };
      }
    
      // collect
      @Generates
      <T> Comparator<T> generateComparator() {
        return generateOrdering();
      }
    
      @Generates
      <T extends @Nullable Object> Ordering<T> generateOrdering() {
        return new Ordering<T>() {
          @Override
          @SuppressWarnings("UnusedVariable") // intentionally weird Comparator
          public int compare(T left, T right) {
            return 0;
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  9. 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)
  10. android/guava/src/com/google/common/collect/SetMultimap.java

     * signature doesn't say so explicitly, the map returned by {@link #asMap} has {@code Set} values.
     *
     * <p>If the values corresponding to a single key should be ordered according to a {@link
     * java.util.Comparator} (or the natural order), see the {@link SortedSetMultimap} subinterface.
     *
     * <p>Since the value collections are sets, the behavior of a {@code SetMultimap} is not specified
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
Back to top