Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 197 for comparators (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/collect/ImmutableTable.java

       *
       * @since 11.0
       */
      @DoNotMock
      public static final class Builder<R, C, V> {
        private final List<Cell<R, C, V>> cells = new ArrayList<>();
        private @Nullable Comparator<? super R> rowComparator;
        private @Nullable Comparator<? super C> columnComparator;
    
        /**
         * Creates a new builder. The returned builder is equivalent to the builder generated by {@link
         * ImmutableTable#builder}.
         */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 17.3K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        assertEquals(multimap, copy);
      }
    
      private static final Comparator<Double> KEY_COMPARATOR = Ordering.natural();
    
      private static final Comparator<Double> VALUE_COMPARATOR =
          Ordering.<Double>natural().reverse().nullsFirst();
    
      /**
       * Test that creating one TreeMultimap from another does not copy the comparators from the source
       * TreeMultimap.
       */
      public void testCreateFromTreeMultimap() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.5K bytes
    - Click Count (0)
  3. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      /**
       * Creates a {@code MonitorBasedPriorityBlockingQueue} with the specified initial capacity that
       * orders its elements according to the specified comparator.
       *
       * @param initialCapacity the initial capacity for this priority queue
       * @param comparator the comparator that will be used to order this priority queue. If {@code
       *     null}, the {@linkplain Comparable natural ordering} of the elements will be used.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 19K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/StandardTable.java

      Iterator<C> createColumnKeyIterator() {
        return new ColumnKeyIterator();
      }
    
      private final class ColumnKeyIterator extends AbstractIterator<C> {
        // Use the same map type to support TreeMaps with comparators that aren't
        // consistent with equals().
        final Map<C, V> seen = factory.get();
        final Iterator<Map<C, V>> mapIterator = backingMap.values().iterator();
        Iterator<Entry<C, V>> entryIterator = emptyIterator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.4K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/StandardTable.java

      Iterator<C> createColumnKeyIterator() {
        return new ColumnKeyIterator();
      }
    
      private final class ColumnKeyIterator extends AbstractIterator<C> {
        // Use the same map type to support TreeMaps with comparators that aren't
        // consistent with equals().
        final Map<C, V> seen = factory.get();
        final Iterator<Map<C, V>> mapIterator = backingMap.values().iterator();
        Iterator<Entry<C, V>> entryIterator = emptyIterator();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 29.4K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        Comparator<Comparable<?>> comparator = Ordering.natural().reverse();
        SortedSet<String> set =
            new ImmutableSortedSet.Builder<String>(comparator).add("a", "b", "c").build();
        SortedSet<String> copy = SerializableTester.reserializeAndAssert(set);
        assertTrue(elementsEqual(set, copy));
        assertEquals(set.comparator(), copy.comparator());
      }
    
      public void testReverseOrder() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.2K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

        // The VarHandle, Unsafe, or Java implementation.
        Comparator<byte[]> comparator = UnsignedBytes.lexicographicalComparator();
        Helpers.testComparator(comparator, ordered);
        assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator);
    
        // The Java implementation.
        Comparator<byte[]> javaImpl = UnsignedBytes.lexicographicalComparatorJavaImpl();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 01:43:32 GMT 2026
    - 14K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/SortedIterables.java

       * {@code comparator}.
       */
      public static boolean hasSameComparator(Comparator<?> comparator, Iterable<?> elements) {
        checkNotNull(comparator);
        checkNotNull(elements);
        Comparator<?> comparator2;
        if (elements instanceof SortedSet) {
          comparator2 = comparator((SortedSet<?>) elements);
        } else if (elements instanceof SortedIterable) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2K bytes
    - Click Count (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

        private final Comparator<? super E> comparator;
    
        public Builder(Comparator<? super E> comparator) {
          this.comparator = checkNotNull(comparator);
        }
    
        Builder(Comparator<? super E> comparator, int expectedSize) {
          super(expectedSize);
          this.comparator = checkNotNull(comparator);
        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> add(E element) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 15.5K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedMap.java

       * should be identical to the one the user passed in. We touch only the
       * "secret" comparator used by the delegate implementation.
       */
    
      private static <K, V> SortedMap<K, V> newModifiableDelegate(Comparator<? super K> comparator) {
        return newTreeMap(nullAccepting(comparator));
      }
    
      private static <E> Comparator<@Nullable E> nullAccepting(Comparator<E> comparator) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 16.6K bytes
    - Click Count (0)
Back to Top