- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 176 for deserialize (0.17 sec)
-
android/guava-tests/test/com/google/common/primitives/ShortsTest.java
@GwtIncompatible // SerializableTester public void testLexicographicalComparatorSerializable() { Comparator<short[]> comparator = Shorts.lexicographicalComparator(); assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator); } public void testReverse() { testReverse(new short[] {}, new short[] {}); testReverse(new short[] {1}, new short[] {1});
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 26.6K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java
* optimizing, because the rest have the option of calling `trimmed`. */ private final transient int start; // it happens that we only serialize instances where this is 0 private final int end; // exclusive private ImmutableDoubleArray(double[] array) { this(array, 0, array.length); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Fri May 12 16:34:24 GMT 2023 - 19.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/FloatsTest.java
@GwtIncompatible // SerializableTester public void testLexicographicalComparatorSerializable() { Comparator<float[]> comparator = Floats.lexicographicalComparator(); assertThat(SerializableTester.reserialize(comparator)).isSameInstanceAs(comparator); } public void testReverse() { testReverse(new float[] {}, new float[] {}); testReverse(new float[] {1}, new float[] {1});
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 29 15:43:06 GMT 2024 - 29.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/StatsTest.java
Stats.of(1.0, 1.0, 5.0, 5.0), Stats.of(ImmutableList.of(1.0, 1.0, 5.0, 5.0)), Stats.of(ImmutableList.of(1.0, 1.0, 5.0, 5.0).iterator()), SerializableTester.reserialize(Stats.of(1.0, 1.0, 5.0, 5.0))) .addEqualityGroup(Stats.of(1.0, 5.0)) .addEqualityGroup(Stats.of(1.0, 5.0, 1.0, 6.0)) .addEqualityGroup(Stats.of(2.0, 6.0, 2.0, 6.0)) .addEqualityGroup(
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Thu Nov 09 22:49:56 GMT 2023 - 32.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
/** Returns the position of an element within the set, or -1 if not present. */ abstract int indexOf(@CheckForNull Object target); /* * This class is used to serialize all ImmutableSortedSet instances, * regardless of implementation type. It captures their "logical contents" * only. This is necessary to ensure that the existence of a particular
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 36.9K 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/test/com/google/common/collect/testing/ReserializedSafeTreeMapMapInterfaceTest.java
map.put("one", 1); map.put("two", 2); map.put("three", 3); return SerializableTester.reserialize(map); } @Override protected SortedMap<String, Integer> makeEmptyMap() throws UnsupportedOperationException { NavigableMap<String, Integer> map = new SafeTreeMap<>(); return SerializableTester.reserialize(map); } @Override protected String getKeyNotInPopulatedMap() { return "minus one"; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Mar 18 18:06:40 GMT 2022 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetSerializationTester.java
Set<Multiset.Entry<E>> expected = getMultiset().entrySet(); assertEquals(expected, SerializableTester.reserialize(expected)); } @CollectionFeature.Require(SERIALIZABLE_INCLUDING_VIEWS) public void testElementSetSerialization() { Set<E> expected = getMultiset().elementSet(); assertEquals(expected, SerializableTester.reserialize(expected)); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Nov 15 21:38:09 GMT 2022 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/OptionalTest.java
} public void testEqualsAndHashCode() { new EqualsTester() .addEqualityGroup(Optional.absent(), reserialize(Optional.absent())) .addEqualityGroup(Optional.of(Long.valueOf(5)), reserialize(Optional.of(Long.valueOf(5)))) .addEqualityGroup(Optional.of(Long.valueOf(42)), reserialize(Optional.of(Long.valueOf(42)))) .testEquals(); } public void testToString_absent() {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 18:32:41 GMT 2024 - 10.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionSerializationTester.java
public void testReserialize() { // For a bare Collection, the most we can guarantee is that the elements are preserved. Helpers.assertEqualIgnoringOrder( actualContents(), SerializableTester.reserialize(actualContents())); }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 1.6K bytes - Viewed (0)