- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 150 for preserve (0.21 sec)
-
android/guava/src/com/google/common/collect/UsingToStringOrdering.java
static final UsingToStringOrdering INSTANCE = new UsingToStringOrdering(); @Override public int compare(Object left, Object right) { return left.toString().compareTo(right.toString()); } // preserve singleton-ness, so equals() and hashCode() work correctly private Object readResolve() { return INSTANCE; } @Override public String toString() { return "Ordering.usingToString()"; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Sun Jun 20 14:22:42 GMT 2021 - 1.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationEqualTester.java
import com.google.common.collect.testing.features.CollectionFeature; import com.google.common.testing.SerializableTester; import org.junit.Ignore; /** * Basic reserialization test for collection types that must preserve {@code equals()} behavior when * reserialized. (Sets and Lists, but not bare Collections.) * * @author Louis Wasserman */ @GwtCompatible
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 1.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EmptyImmutableSetMultimap.java
* changes). */ @Override public ImmutableMap<Object, Collection<Object>> asMap() { return super.asMap(); } private Object readResolve() { return INSTANCE; // preserve singleton property } private static final long serialVersionUID = 0;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Aug 18 16:48:17 GMT 2022 - 1.7K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashCode.java
return hash == that.asLong(); } private static final long serialVersionUID = 0; } /** * Creates a {@code HashCode} from a byte array. The array is defensively copied to preserve the * immutability contract of {@code HashCode}. The array cannot be empty. * * @since 15.0 (since 12.0 in HashCodes) */ public static HashCode fromBytes(byte[] bytes) {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Apr 20 18:43:59 GMT 2021 - 12.6K bytes - Viewed (0) -
guava/src/com/google/common/base/Functions.java
* {@code equals}, {@code hashCode} or {@code toString} behavior of the returned function. A * future migration to {@code java.util.function} will not preserve this behavior. * * <p><b>Java 8+ users:</b> use the method reference {@code Object::toString} instead. In the * future, when this class requires Java 8, this method will be deprecated. See {@link Function}
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 15 16:12:13 GMT 2024 - 14.1K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java
queue.add(task); return; } oldRunCount = workerRunCount; // If the worker is not yet running, the delegate Executor might reject our attempt to start // it. To preserve FIFO order and failure atomicity of rejected execution when the same // Runnable is executed more than once, allocate a wrapper that we know is safe to remove by // object identity.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Thu Feb 01 21:46:34 GMT 2024 - 10.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
* <p>If this method is called, the sets returned by the {@code get()} method of the generated * multimap and its {@link Multimap#asMap()} view are {@link ImmutableSortedSet} instances. * However, serialization does not preserve that property, though it does maintain the key and * value ordering. * * @since 8.0 */ // TODO: Make serialization behavior consistent. @CanIgnoreReturnValue @Override
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 23.1K bytes - Viewed (0) -
guava/src/com/google/common/base/Throwables.java
* * @param throwable the Throwable to propagate * @return nothing will ever be returned; this return type is only for your convenience, as * illustrated in the example above * @deprecated To preserve behavior, use {@code throw e} or {@code throw new RuntimeException(e)} * directly, or use a combination of {@link #throwIfUnchecked} and {@code throw new
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Wed Mar 06 15:38:58 GMT 2024 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
* * @param throwable the Throwable to propagate * @return nothing will ever be returned; this return type is only for your convenience, as * illustrated in the example above * @deprecated To preserve behavior, use {@code throw e} or {@code throw new RuntimeException(e)} * directly, or use a combination of {@link #throwIfUnchecked} and {@code throw new
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Mar 06 15:38:58 GMT 2024 - 20.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* k, valueFunction))}. {@code ImmutableMap.copyOf(stream.collect(Collectors.toMap(k -> k, * valueFunction)))} behaves similarly, but may not preserve the order of entries. * * @throws NullPointerException if any element of this iterable is {@code null}, or if {@code * valueFunction} produces {@code null} for any key * @since 14.0 */
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 30 00:14:39 GMT 2024 - 35.7K bytes - Viewed (0)