- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 141 for equality (0.41 sec)
-
guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
refreshIfEmpty(); return delegate.size(); } @Override /* * Most Multimap implementations use a List or Set (or even Multiset) for their values, in which * case Multimap equality works as expected. Users who use a Collection type that does not * implement equals(), such as most Queue implementations, will get the same behavior from our
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Aug 12 15:51:57 UTC 2025 - 48.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Chars.java
* array as the lesser. For example, {@code [] < ['a'] < ['a', 'b'] < ['b']}. * * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays * support only identity equality), but it is consistent with {@link Arrays#equals(char[], * char[])}. * * @since 2.0 */ public static Comparator<char[]> lexicographicalComparator() { return LexicographicalComparator.INSTANCE;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Floats.java
* lesser. For example, {@code [] < [1.0f] < [1.0f, 2.0f] < [2.0f]}. * * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays * support only identity equality), but it is consistent with {@link Arrays#equals(float[], * float[])}. * * @since 2.0 */ public static Comparator<float[]> lexicographicalComparator() { return LexicographicalComparator.INSTANCE;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Longs.java
* example, {@code [] < [1L] < [1L, 2L] < [2L]}. * * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays * support only identity equality), but it is consistent with {@link Arrays#equals(long[], * long[])}. * * @since 2.0 */ public static Comparator<long[]> lexicographicalComparator() { return LexicographicalComparator.INSTANCE;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 29.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSet.java
E[] array = (E[]) elements.toArray(); /* * For a Set, we guess that it contains no duplicates. That's just a guess for purpose of * sizing; if the Set uses different equality semantics, it might contain duplicates according * to equals(), and we will deduplicate those properly, albeit at some cost in allocations. */ int expectedSize =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 35.2K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Doubles.java
* lesser. For example, {@code [] < [1.0] < [1.0, 2.0] < [2.0]}. * * <p>The returned comparator is inconsistent with {@link Object#equals(Object)} (since arrays * support only identity equality), but it is consistent with {@link Arrays#equals(double[], * double[])}. * * @since 2.0 */ public static Comparator<double[]> lexicographicalComparator() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.7K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
if (result == -1) { break; } total += result; } return total; } /** Compares the contents of the two {@link InputStream}s for equality. */ static boolean contentsEqual(InputStream in1, InputStream in2) throws IOException { byte[] buf1 = createBuffer(); byte[] buf2 = createBuffer(); while (true) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Sets.java
Comparator<? super E> comparator) { return new TreeSet<>(checkNotNull(comparator)); } /** * Creates an empty {@code Set} that uses identity to determine equality. It compares object * references, instead of calling {@code equals}, to determine whether a provided object matches * an element in the set. For example, {@code contains} returns {@code false} when passed an
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 81.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* that makes `java.net.URL` unusable for many things. It shouldn't be used as a [Map] key or in a * [Set]. Doing so is both inefficient because equality may require a DNS lookup, and incorrect * because unequal URLs may be equal because of how they are hosted. * * ### Equal URLs should be equal *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 63.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenTest.java
TypeToken<StringForFirstTypeArg<Integer>> subtype = new TypeToken<StringForFirstTypeArg<Integer>>() {}; assertTrue(subtype.isSubtypeOf(supertype)); // TODO(benyu): This should check equality to an expected value, see discussion in cl/98674873 TypeToken<?> unused = supertype.getSubtype(subtype.getRawType()); } public void testGetSubtype_baseClassWithNoTypeArgs() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Sep 02 17:23:59 UTC 2025 - 89K bytes - Viewed (0)