- Sort Score
- Result 10 results
- Languages All
Results 271 - 280 of 554 for HashCode (0.06 sec)
-
guava/src/com/google/common/collect/Synchronized.java
if (o == this) { return true; } synchronized (mutex) { return delegate().equals(o); } } @Override public int hashCode() { synchronized (mutex) { return delegate().hashCode(); } } private static final long serialVersionUID = 0; } private static <E extends @Nullable Object> SortedSet<E> sortedSet(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 57.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookieTest.kt
val cookieB = parseCookie(0, url, stringB!!) if (stringA == stringB) { assertThat(cookieB.hashCode()).isEqualTo(cookieA.hashCode()) assertThat(cookieB).isEqualTo(cookieA) } else { assertThat(cookieB.hashCode()).isNotEqualTo(cookieA.hashCode().toLong()) assertThat(cookieB).isNotEqualTo(cookieA) } } assertThat(cookieA).isNotEqualTo(null)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 24.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/PredicatesTest.java
}; /** Instantiable predicate with reasonable hashCode() and equals() methods. */ static class IsOdd implements Predicate<@Nullable Integer>, Serializable { private static final long serialVersionUID = 0x150ddL; @Override public boolean apply(@Nullable Integer i) { return (i.intValue() & 1) == 1; } @Override public int hashCode() { return 0x150dd; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 17:15:24 UTC 2024 - 32.4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 24 16:03:45 UTC 2024 - 3.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java
byte[] bytes() { return out.toByteArray(); } void assertBytes(byte[] expected) { assertArrayEquals(expected, bytes()); } @Override public HashCode hash() { return HashCode.fromBytesNoCopy(bytes()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 3.8K bytes - Viewed (0) -
guava/src/com/google/common/hash/MacHashFunction.java
} private void checkNotDone() { checkState(!done, "Cannot re-use a Hasher after calling hash() on it"); } @Override public HashCode hash() { checkNotDone(); done = true; return HashCode.fromBytesNoCopy(mac.doFinal()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Feb 15 22:31:55 UTC 2022 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbFileHandleImpl.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.6K bytes - Viewed (1) -
guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java
for (int i = 0; i < reps; i++) { MoreObjects.ToStringHelper helper = newHelper(); for (int j = 0; j < dataSize; ++j) { dataset.addEntries(helper); } dummy ^= helper.toString().hashCode(); } return dummy; } // When omitEmptyValues() is released, remove this method and add a new @Param "omitEmptyValues".
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Jun 10 19:21:11 UTC 2024 - 4.3K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Booleans.java
* Returns a hash code for {@code value}; equal to the result of invoking {@code ((Boolean) * value).hashCode()}. * * <p><b>Java 8+ users:</b> use {@link Boolean#hashCode(boolean)} instead. * * @param value a primitive {@code boolean} value * @return a hash code for the value */ public static int hashCode(boolean value) { return value ? 1231 : 1237; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0) -
guava/src/com/google/common/primitives/Booleans.java
* Returns a hash code for {@code value}; equal to the result of invoking {@code ((Boolean) * value).hashCode()}. * * <p><b>Java 8+ users:</b> use {@link Boolean#hashCode(boolean)} instead. * * @param value a primitive {@code boolean} value * @return a hash code for the value */ public static int hashCode(boolean value) { return value ? 1231 : 1237; } /**
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 19:07:49 UTC 2024 - 20.4K bytes - Viewed (0)