Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for comparing (0.16 sec)

  1. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
     *   <li>comparing each object against null returns false
     *   <li>comparing each object against an instance of an incompatible class returns false
     *   <li>comparing each pair of objects within the same equality group returns true
     *   <li>comparing each pair of objects from different equality groups returns false
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ComparisonChain.java

     *
     * <pre>{@code
     * import static java.util.Comparator.comparing;
     * import static java.util.Comparator.nullsLast;
     * import static java.util.Comparator.naturalOrder;
     *
     * ...
     *   private static final Comparator<Foo> COMPARATOR =
     *       comparing((Foo foo) -> foo.aString)
     *           .thenComparing(foo -> foo.anInt)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Sep 21 17:28:11 GMT 2022
    - 11.2K bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java

     */
    
    package com.google.common.hash;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.util.Random;
    
    /**
     * Benchmarks for comparing the various {@link HashFunction functions} that we provide.
     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: The length of the byte array to hash.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ComparatorsTest.java

     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.truth.Truth.assertThat;
    import static java.util.Arrays.asList;
    import static java.util.Comparator.comparing;
    import static java.util.Comparator.naturalOrder;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.Helpers;
    import com.google.common.testing.EqualsTester;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Apr 11 08:42:51 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/HashFunctionEnum.java

      SHA384(Hashing.sha384()),
      SHA512(Hashing.sha512()),
      SIP_HASH24(Hashing.sipHash24()),
      FARMHASH_FINGERPRINT_64(Hashing.farmHashFingerprint64()),
    
      // Hash functions found in //javatests for comparing against current implementation of CityHash.
      // These can probably be removed sooner or later.
      ;
    
      private final HashFunction hashFunction;
    
      private HashFunctionEnum(HashFunction hashFunction) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/EqualsTester.java

     * </pre>
     *
     * <p>This tests:
     *
     * <ul>
     *   <li>comparing each object against itself returns true
     *   <li>comparing each object against null returns false
     *   <li>comparing each object against an instance of an incompatible class returns false
     *   <li>comparing each pair of objects within the same equality group returns true
     *   <li>comparing each pair of objects from different equality groups returns false
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  7. guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.Random;
    
    /**
     * Benchmarks for comparing {@link MessageDigest}s and {@link com.google.common.hash.HashFunction}s
     * that wrap {@link MessageDigest}s.
     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: The length of the byte array to hash.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.5K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

    import com.google.caliper.api.VmOptions;
    import java.util.HashSet;
    import java.util.Set;
    import java.util.concurrent.Executor;
    import java.util.concurrent.atomic.AtomicInteger;
    
    /**
     * A benchmark comparing the {@link MoreExecutors#newDirectExecutorService()} to {@link
     * MoreExecutors#directExecutor}.
     */
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    public class MoreExecutorsDirectExecutorBenchmark {
      enum Impl {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

    import com.google.caliper.api.VmOptions;
    import java.util.HashSet;
    import java.util.Set;
    import java.util.concurrent.Executor;
    import java.util.concurrent.atomic.AtomicInteger;
    
    /**
     * A benchmark comparing the {@link MoreExecutors#newDirectExecutorService()} to {@link
     * MoreExecutors#directExecutor}.
     */
    @VmOptions({"-Xms12g", "-Xmx12g", "-d64"})
    public class MoreExecutorsDirectExecutorBenchmark {
      enum Impl {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

    import com.google.caliper.Benchmark;
    import com.google.caliper.Param;
    import java.security.MessageDigest;
    import java.util.Arrays;
    import java.util.Random;
    
    /**
     * Benchmarks for comparing the various {@link HashCode#equals} methods.
     *
     * <p>Parameters for the benchmark are:
     *
     * <ul>
     *   <li>size: the length of the byte array to hash
     *   <li>whereToDiffer: where in the array the bytes should differ
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
Back to top