Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 300 for reordering (0.08 sec)

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

            if (forwardCmp == null) {
              forwardCmp = (Comparator) Ordering.natural();
            }
            result = comparator = reverse(forwardCmp);
          }
          return result;
        }
    
        // If we inline this, we get a javac error.
        private static <T extends @Nullable Object> Ordering<T> reverse(Comparator<T> forward) {
          return Ordering.from(forward).reverse();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/TreeMultiset.java

       *     indicates that the elements' <i>natural ordering</i> should be used.
       */
      @SuppressWarnings("unchecked")
      public static <E extends @Nullable Object> TreeMultiset<E> create(
          @CheckForNull Comparator<? super E> comparator) {
        return (comparator == null)
            ? new TreeMultiset<E>((Comparator) Ordering.natural())
            : new TreeMultiset<E>(comparator);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

    import com.google.common.collect.Maps;
    import com.google.common.collect.MultimapBuilder;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.SetMultimap;
    import com.google.common.util.concurrent.Service.State;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.GuardedBy;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/ServiceManager.java

    import com.google.common.collect.Maps;
    import com.google.common.collect.MultimapBuilder;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.SetMultimap;
    import com.google.common.util.concurrent.Service.State;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.concurrent.GuardedBy;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/Collections2Test.java

      }
    
      public void testOrderedPermutationSetRepeatedElements() {
        List<Integer> list = newArrayList(1, 1, 2, 2);
        Iterator<List<Integer>> permutations =
            Collections2.orderedPermutations(list, Ordering.natural()).iterator();
    
        assertNextPermutation(newArrayList(1, 1, 2, 2), permutations);
        assertNextPermutation(newArrayList(1, 2, 1, 2), permutations);
        assertNextPermutation(newArrayList(1, 2, 2, 1), permutations);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 10:16:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

    import com.google.common.collect.ListMultimap;
    import com.google.common.collect.Maps;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.Range;
    import com.google.common.collect.RowSortedTable;
    import com.google.common.collect.SetMultimap;
    import com.google.common.collect.SortedMultiset;
    import com.google.common.collect.Table;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 18.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/QuantilesTest.java

    import static java.math.RoundingMode.UNNECESSARY;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.Ordering;
    import com.google.common.math.Quantiles.ScaleAndIndexes;
    import com.google.common.primitives.Doubles;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/EndpointPair.java

      /** Returns an {@link EndpointPair} representing the endpoints of an undirected edge. */
      public static <N> EndpointPair<N> unordered(N nodeU, N nodeV) {
        // Swap nodes on purpose to prevent callers from relying on the "ordering" of an unordered pair.
        return new Unordered<>(nodeV, nodeU);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of an edge in {@code graph}. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/SetMultimap.java

      /**
       * Compares the specified object to this multimap for equality.
       *
       * <p>Two {@code SetMultimap} instances are equal if, for each key, they contain the same values.
       * Equality does not depend on the ordering of keys or values.
       *
       * <p>An empty {@code SetMultimap} is equal to any other empty {@code Multimap}, including an
       * empty {@code ListMultimap}.
       */
      @Override
      boolean equals(@CheckForNull Object obj);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 24 17:47:51 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/LittleEndianDataOutputStream.java

    import java.io.DataOutputStream;
    import java.io.FilterOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    
    /**
     * An implementation of {@link DataOutput} that uses little-endian byte ordering for writing {@code
     * char}, {@code short}, {@code int}, {@code float}, {@code double}, and {@code long} values.
     *
     * <p><b>Note:</b> This class intentionally violates the specification of its supertype {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 12:34:49 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top