- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 177 for deserialize (0.1 sec)
-
guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java
assertEquals(HashMultiset.create(multimap.values()), HashMultiset.create(valuesCopy)); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testEmptySerialization() { Multimap<String, Integer> multimap = ImmutableListMultimap.of(); assertSame(multimap, SerializableTester.reserialize(multimap)); } @J2ktIncompatible
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 25.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
AtomicDouble a = new AtomicDouble(x); double z = a.updateAndGet(value -> value - 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);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 02:42:09 UTC 2024 - 10.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/OrderingTest.java
import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.collect.testing.Helpers.testComparator; import static com.google.common.testing.SerializableTester.reserialize; import static com.google.common.testing.SerializableTester.reserializeAndAssert; import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import static java.util.Arrays.sort;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/OrderingTest.java
import static com.google.common.collect.ReflectionFreeAssertThrows.assertThrows; import static com.google.common.collect.testing.Helpers.testComparator; import static com.google.common.testing.SerializableTester.reserialize; import static com.google.common.testing.SerializableTester.reserializeAndAssert; import static com.google.common.truth.Truth.assertThat; import static java.util.Arrays.asList; import static java.util.Arrays.sort;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableEnumMap.java
private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use EnumSerializedForm"); } /* * This class is used to serialize ImmutableEnumMap instances. */ @J2ktIncompatible // serialization private static class EnumSerializedForm<K extends Enum<K>, V> implements Serializable { final EnumMap<K, V> delegate;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.7K bytes - Viewed (0) -
common-protos/k8s.io/apimachinery/pkg/runtime/generated.proto
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Mon Mar 11 18:43:24 UTC 2024 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java
EvictingQueue<String> original = EvictingQueue.create(5); original.add("one"); original.add("two"); original.add("three"); EvictingQueue<String> copy = SerializableTester.reserialize(original); assertEquals(copy.maxSize, original.maxSize); assertEquals("one", copy.remove()); assertEquals("two", copy.remove()); assertEquals("three", copy.remove()); assertTrue(copy.isEmpty());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 6.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java
for (Invokable<?, ?> factory : getFactoriesToTest()) { Object instance = instantiate(factory); if (instance != null) { try { SerializableTester.reserialize(instance); } catch (Exception e) { // sneaky checked exception throw new AssertionError( "Serialization failed on return value of " + factory, e.getCause()); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:18:12 UTC 2024 - 32.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
* exercise null handling fail on those subcollections. */ public abstract static class NullsBefore implements Comparator<@Nullable String>, Serializable { /* * We don't serialize this class in GWT, so we don't care about whether GWT will serialize this * field. */ @GwtTransient private final String justAfterNull; protected NullsBefore(String justAfterNull) { if (justAfterNull == null) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
} public void testNewTypeVariable_serializable() throws Exception { assertThrows( RuntimeException.class, () -> SerializableTester.reserialize(Types.newArtificialTypeVariable(List.class, "E"))); } private static <D extends GenericDeclaration> TypeVariable<D> withBounds( TypeVariable<D> typeVariable, Type... bounds) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:41:27 UTC 2024 - 15.2K bytes - Viewed (0)