- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 387 for serialize (0.06 seconds)
-
guava/src/com/google/common/collect/LinkedHashMultimap.java
@SuppressWarnings("unchecked") K key = (K) stream.readObject(); @SuppressWarnings("unchecked") V value = (V) stream.readObject(); /* * requireNonNull is safe for a properly serialized multimap: We've already inserted a * collection for each key that we expect. */ requireNonNull(map.get(key)).add(value); } setMap(map); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 20K bytes - Click Count (0) -
cmd/xl-storage-format_test.go
xl.AddVersion(fi) } // Encode all. This is used for benchmarking. enc, err := xl.AppendTo(nil) if err != nil { b.Fatal(err) } b.Logf("Serialized size: %d bytes", len(enc)) rng := rand.New(rand.NewSource(0)) dump := make([]byte, len(enc)) b.Run("UpdateObjectVersion", func(b *testing.B) { b.SetBytes(int64(size)) b.ResetTimer()
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 17.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
} public void testSerialization() { AtomicLongMap<String> map = AtomicLongMap.create(); map.put("key", 1L); AtomicLongMap<String> reserialized = SerializableTester.reserialize(map); assertEquals(map.asMap(), reserialized.asMap()); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
if (instance != null) { if (isEqualsDefined(classToTest)) { SerializableTester.reserializeAndAssert(instance); } else { SerializableTester.reserialize(instance); } } } catch (Throwable e) { throw sanityError(classToTest, SERIALIZABLE_TEST_METHOD_NAMES, "serializable test", e); } } } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 17.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* <p>We have chosen this approach over at least two alternatives: * * <ul> * <li>We could change the serialization of this class incompatibly. We have reserved the right * to make such changes to our serialized forms, and we have made them before, usually * without trouble. In this case, my guess is that our chosen approach is even less likely * to lead to trouble than an incompatible change would be.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/RegularImmutableMap.java
@SuppressWarnings("RedundantOverride") @Override @J2ktIncompatible @GwtIncompatible Object writeReplace() { return super.writeReplace(); } // This class is never actually serialized directly, but we have to make the // warning go away (and suppressing would suppress for all nested classes too) @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 22.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} @J2ktIncompatible @GwtIncompatible // SerializableTester public void testSerialization_empty() { Collection<String> c = ImmutableMultiset.of(); assertThat(SerializableTester.reserialize(c)).isSameInstanceAs(c); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testSerialization_multiple() { Collection<String> c = ImmutableMultiset.of("a", "b", "a");
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 20.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
@Deprecated @Override @DoNotCall("Always throws UnsupportedOperationException") public final @Nullable V forcePut(K key, V value) { throw new UnsupportedOperationException(); } /** * Serialized type for all ImmutableBiMap instances. It captures the logical contents and they are * reconstructed using public factory methods. This ensures that the implementation types remain * as implementation details. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 22.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* <p>We have chosen this approach over at least two alternatives: * * <ul> * <li>We could change the serialization of this class incompatibly. We have reserved the right * to make such changes to our serialized forms, and we have made them before, usually * without trouble. In this case, my guess is that our chosen approach is even less likely * to lead to trouble than an incompatible change would be.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java
return multimapGenerator.order(insertionOrder); } @Override public M create(Object... elements) { return SerializableTester.reserialize( ((TestMultimapGenerator<K, V, M>) multimapGenerator.getInnerGenerator()) .create(elements)); } @Override public K[] createKeyArray(int length) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 02 19:58:40 GMT 2026 - 26.7K bytes - Click Count (0)