- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for comparing (0.06 sec)
-
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ComparisonChainTest.java
.isLessThan(0); Comparator<Bar> trueFirstComparator = comparing(Bar::isBaz, Booleans.trueFirst()); assertThat(trueFirstComparator.compare(trueBar, falseBar)).isLessThan(0); assertThat( ComparisonChain.start().compareFalseFirst(falseBar.isBaz(), trueBar.isBaz()).result()) .isLessThan(0); Comparator<Bar> falseFirstComparator = comparing(Bar::isBaz, Booleans.falseFirst());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:05:13 UTC 2025 - 7.6K bytes - Viewed (0) -
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
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import static java.util.Collections.singleton; import static java.util.Comparator.comparing; import static java.util.Comparator.naturalOrder; import static java.util.Comparator.reverseOrder; import com.google.common.annotations.GwtCompatible; import com.google.common.testing.EqualsTester;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Apr 12 15:07:59 UTC 2025 - 6.4K bytes - Viewed (0) -
android/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; HashFunctionEnum(HashFunction hashFunction) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jan 30 16:59:10 UTC 2025 - 1.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
import com.google.caliper.Param; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** * 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.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 3.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/hash/MessageDigestAlgorithmBenchmark.java
import com.google.caliper.Param; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** * 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.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 3.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import com.google.caliper.Param; import java.util.Random; import org.jspecify.annotations.NullUnmarked; /** * 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.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/IteratorTester.java
import java.util.Collections; import java.util.Iterator; import org.jspecify.annotations.NullMarked; import org.jspecify.annotations.Nullable; /** * A utility for testing an Iterator implementation by comparing its behavior to that of a "known * good" reference implementation. In order to accomplish this, it's important to test a great * variety of sequences of the {@link Iterator#next}, {@link Iterator#hasNext} and {@link
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 4.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/StripedBenchmark.java
import java.util.List; import java.util.Random; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import org.jspecify.annotations.NullUnmarked; /** A benchmark comparing the various striped implementations. */ @VmOptions({"-Xms12g", "-Xmx12g", "-d64"}) @NullUnmarked public class StripedBenchmark { private static final Supplier<Lock> LOCK_SUPPLIER = new Supplier<Lock>() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4K bytes - Viewed (0)