- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 69 for deserialized (0.17 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java
public class MapSerializationTester<K, V> extends AbstractMapTester<K, V> { @CollectionFeature.Require(SERIALIZABLE) public void testReserializeMap() { Map<K, V> deserialized = SerializableTester.reserialize(getMap()); new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals(); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Feb 02 20:22:04 GMT 2018 - 1.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/SerializableTester.java
* * @return the re-serialized object * @throws RuntimeException if the specified object was not successfully serialized or * deserialized */ @CanIgnoreReturnValue public static <T> T reserialize(T object) { return Platform.reserialize(object); } /** * Serializes and deserializes the specified object and verifies that the re-serialized object is
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/SerializableTester.java
* * @return the re-serialized object * @throws RuntimeException if the specified object was not successfully serialized or * deserialized */ @CanIgnoreReturnValue public static <T> T reserialize(T object) { return Platform.reserialize(object); } /** * Serializes and deserializes the specified object and verifies that the re-serialized object is
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Apr 25 11:57:12 GMT 2023 - 4.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapSerializationTester.java
public class MapSerializationTester<K, V> extends AbstractMapTester<K, V> { @CollectionFeature.Require(SERIALIZABLE) public void testReserializeMap() { Map<K, V> deserialized = SerializableTester.reserialize(getMap()); new EqualsTester().addEqualityGroup(getMap(), deserialized).testEquals(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Feb 02 20:22:04 GMT 2018 - 1.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
AtomicDouble a = new AtomicDouble(x); double z = a.addAndGet(y); assertBitEquals(x + y, z); assertBitEquals(x + y, a.get()); } } } /** a deserialized serialized atomic holds same value */ public void testSerialization() throws Exception { AtomicDouble a = new AtomicDouble(); AtomicDouble b = serialClone(a); assertNotSame(a, b); a.set(-22.0);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 09 22:57:07 GMT 2022 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java
return proxyClass.isInstance(arg) // Equal proxy instances should mostly be instance of proxyClass // Under some edge cases (such as the proxy of JDK types serialized and then deserialized) // the proxy type may not be the same. // We first check isProxyClass() so that the common case of comparing with non-proxy objects // is efficient.
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Jan 05 17:43:40 GMT 2022 - 5.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java
import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.util.Collection; import java.util.List; /** * Reserializes the sets created by another test set generator. * * <p>TODO: make CollectionTestSuiteBuilder test reserialized collections * * @author Jesse Wilson */ @GwtIncompatible public class ReserializingTestCollectionGenerator<E> implements TestCollectionGenerator<E> {
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri Oct 01 17:18:04 GMT 2021 - 2.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LenientSerializableTester.java
Set<E> copy = reserialize(original); assertEquals(original, copy); assertTrue(copy instanceof ImmutableSet); return copy; } @CanIgnoreReturnValue @GwtIncompatible // SerializableTester static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) { Multiset<E> copy = reserialize(original); assertEquals(original, copy);
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Aug 04 15:33:27 GMT 2020 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java
derivedSuites.add( SetTestSuiteBuilder.using( new ReserializedSetGenerator<E>(parentBuilder.getSubjectGenerator())) .named(getName() + " reserialized") .withFeatures(computeReserializedCollectionFeatures(parentBuilder.getFeatures())) .suppressing(parentBuilder.getSuppressedTests()) .withSetUp(parentBuilder.getSetUp())
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 4.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/ListTestSuiteBuilder.java
derivedSuites.add( ListTestSuiteBuilder.using( new ReserializedListGenerator<E>(parentBuilder.getSubjectGenerator())) .named(getName() + " reserialized") .withFeatures(computeReserializedCollectionFeatures(parentBuilder.getFeatures())) .suppressing(parentBuilder.getSuppressedTests()) .withSetUp(parentBuilder.getSetUp())
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 6.2K bytes - Viewed (0)