Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 224 for comparators (0.1 sec)

  1. android/guava/src/com/google/common/primitives/SignedBytes.java

       * signed.
       *
       * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays
       * support only identity equality), but it is consistent with {@link
       * java.util.Arrays#equals(byte[], byte[])}.
       *
       * @since 2.0
       */
      public static Comparator<byte[]> lexicographicalComparator() {
        return LexicographicalComparator.INSTANCE;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        }
    
        @Override
        public SortedMap<K, V> tailMap(K fromKey) {
          return tailMap(fromKey, true);
        }
    
        @Override
        public Comparator<? super K> comparator() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate().comparator();
        }
    
        @Override
        public K firstKey() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate().firstKey();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 22:09:38 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.Random;
    
    /**
     * Microbenchmark for {@link UnsignedBytes}.
     *
     * @author Hiroshi Yamauchi
     */
    public class UnsignedBytesBenchmark {
    
      private byte[] ba1;
      private byte[] ba2;
      private byte[] ba3;
      private byte[] ba4;
      private Comparator<byte[]> javaImpl;
      private Comparator<byte[]> unsafeImpl;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingSortedMultiset.java

        /** Constructor for use by subclasses. */
        public StandardElementSet() {
          super(ForwardingSortedMultiset.this);
        }
      }
    
      @Override
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      public SortedMultiset<E> descendingMultiset() {
        return delegate().descendingMultiset();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/StandardRowSortedTable.java

        }
    
        @Override
        SortedSet<R> createKeySet() {
          return new Maps.SortedKeySet<>(this);
        }
    
        @Override
        @CheckForNull
        public Comparator<? super R> comparator() {
          return sortedBackingMap().comparator();
        }
    
        @Override
        public R firstKey() {
          return sortedBackingMap().firstKey();
        }
    
        @Override
        public R lastKey() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jul 15 15:41:16 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableList.java

       * {@code ImmutableList}, use {@code stream.sorted(comparator).collect(toImmutableList())}.
       *
       * @throws NullPointerException if any element in the input is null
       * @since 21.0
       */
      public static <E> ImmutableList<E> sortedCopyOf(
          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        checkNotNull(comparator);
        @SuppressWarnings("unchecked") // all supported methods are covariant
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FluentIterable.java

       * FluentIterable} in the order specified by {@code comparator}. To produce an {@code
       * ImmutableList} sorted by its natural ordering, use {@code toSortedList(Ordering.natural())}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * ImmutableList.copyOf(stream.sorted(comparator).iterator())}, or pass {@link
       * ImmutableList#toImmutableList} to {@code stream.sorted(comparator).collect()}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/google/SortedSetMultimapAsMapTester.java

          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      public void testAsMapGetImplementsSortedSet() {
        for (K key : multimap().keySet()) {
          SortedSet<V> valueSet = (SortedSet<V>) multimap().asMap().get(key);
          assertEquals(multimap().valueComparator(), valueSet.comparator());
        }
      }
    
      @MapFeature.Require(SUPPORTS_REMOVE)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableList.java

      }
    
      public static <E> ImmutableList<E> sortedCopyOf(
          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        checkNotNull(comparator);
        @SuppressWarnings("unchecked") // all supported methods are covariant
        E[] array = (E[]) Iterables.toArray(elements);
        checkElementsNotNull(array);
        Arrays.sort(array, comparator);
        return asImmutableList(array);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 14 22:14:46 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

          map.put(entry.getKey(), entry.getValue());
        }
        return map;
      }
    
      static <T> Comparator<T> arbitraryNullFriendlyComparator() {
        return new NullFriendlyComparator<>();
      }
    
      private static final class NullFriendlyComparator<T> implements Comparator<T>, Serializable {
        @Override
        public int compare(T left, T right) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top