Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 185 for deserialized (0.89 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        Thread t1 = newStartedThread(c1);
        Thread t2 = newStartedThread(c2);
        awaitTermination(t1);
        awaitTermination(t2);
        assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
      }
    
      /** a deserialized serialized array holds same values */
      public void testSerialization() throws Exception {
        AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          x.set(i, (double) -i);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
  6. 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)
  7. guava-tests/test/com/google/common/collect/SetsTest.java

        ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(serializedForm));
    
        ImmutableSet<?> deserialized = (ImmutableSet<?>) in.readObject();
        EnumSet<?> delegate = (EnumSet<?>) in.readObject();
    
        assertEquals(original, deserialized);
        assertTrue(delegate.remove(SomeEnum.A));
        assertTrue(deserialized.contains(SomeEnum.A));
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Suppliers.java

       * most once unless the underlying {@code get()} throws an exception. The supplier's serialized
       * form does not contain the cached value, which will be recalculated when {@code get()} is called
       * on the deserialized instance.
       *
       * <p>When the underlying delegate throws an exception then this memoizing supplier will keep
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

        Thread t1 = newStartedThread(c1);
        Thread t2 = newStartedThread(c2);
        awaitTermination(t1);
        awaitTermination(t2);
        assertEquals(SIZE * COUNTDOWN, c1.counts + c2.counts);
      }
    
      /** a deserialized serialized array holds same values */
      public void testSerialization() throws Exception {
        AtomicDoubleArray x = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          x.set(i, (double) -i);
        }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

            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);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
Back to top