- Sort Score
- Num 10 results
- Language All
Results 221 - 230 of 484 for hashCode (0.07 seconds)
-
android/guava/src/com/google/common/base/CaseFormat.java
return sourceFormat.equals(that.sourceFormat) && targetFormat.equals(that.targetFormat); } return false; } @Override public int hashCode() { return 3 * sourceFormat.hashCode() + targetFormat.hashCode(); } @Override public String toString() { return sourceFormat + ".converterTo(" + targetFormat + ")"; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Dec 03 18:46:33 GMT 2025 - 6.5K bytes - Click Count (0) -
guava/src/com/google/common/graph/ValueGraph.java
* additional documentation, including: * * <ul> * <li><a * href="https://github.com/google/guava/wiki/GraphsExplained#equals-hashcode-and-graph-equivalence"> * {@code equals()}, {@code hashCode()}, and graph equivalence</a> * <li><a href="https://github.com/google/guava/wiki/GraphsExplained#synchronization"> * Synchronization policy</a>
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Mar 17 20:26:29 GMT 2025 - 16K bytes - Click Count (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 { @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0x150ddL; @Override public boolean apply(@Nullable Integer i) { return (i.intValue() & 1) == 1; } @Override public int hashCode() { return 0x150dd; }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 32.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
try { MessageDigest digest = MessageDigest.getInstance(algorithmName); assertEquals( HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input)); for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) { assertEquals( HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)),Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableMapEntrySet.java
} @Override @GwtIncompatible // not used in GWT boolean isHashCodeFast() { return map().isHashCodeFast(); } @Override public int hashCode() { return map().hashCode(); } @GwtIncompatible @J2ktIncompatible @Override Object writeReplace() { return new EntrySetSerializedForm<>(map()); } @GwtIncompatible
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Nov 17 22:50:48 GMT 2025 - 4.3K bytes - Click Count (0) -
guava/src/com/google/common/collect/Lists.java
/** An implementation of {@link List#hashCode()}. */ static int hashCodeImpl(List<?> list) { // TODO(lowasser): worth optimizing for RandomAccess? int hashCode = 1; for (Object o : list) { hashCode = 31 * hashCode + (o == null ? 0 : o.hashCode()); hashCode = ~~hashCode; // needed to deal with GWT integer overflow } return hashCode; }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 42.6K bytes - Click Count (0) -
guava/src/com/google/common/graph/AbstractValueGraph.java
return isDirected() == other.isDirected() && nodes().equals(other.nodes()) && edgeValueMap(this).equals(edgeValueMap(other)); } @Override public final int hashCode() { return edgeValueMap(this).hashCode(); } /** Returns a string representation of this graph. */ @Override public String toString() { return "isDirected: " + isDirected()Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Feb 19 21:24:11 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Equivalence.java
*/ public final <S extends @Nullable T> Wrapper<S> wrap(@ParametricNullness S reference) { return new Wrapper<>(this, reference); } /** * Wraps an object so that {@link #equals(Object)} and {@link #hashCode()} delegate to an {@link * Equivalence}. * * <p>For example, given an {@link Equivalence} for {@link String strings} named {@code equiv} * that tests equivalence using their lengths: *
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 10 01:47:55 GMT 2025 - 14.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Table.java
/** * Returns the hash code of this cell. * * <p>The hash code of a table cell is equal to {@link Objects#hashCode}{@code (e.getRowKey(), * e.getColumnKey(), e.getValue())}. */ @Override int hashCode(); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java
} @Override @GwtIncompatible // not used in GWT boolean isHashCodeFast() { return map().isHashCodeFast(); } @Override public int hashCode() { return map().hashCode(); } @GwtIncompatible @J2ktIncompatible @Override Object writeReplace() { return new EntrySetSerializedForm<>(map()); } @GwtIncompatible
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 3.7K bytes - Click Count (0)