Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 185 for deserialized (0.19 sec)

  1. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

       *
       * <ul>
       *   <li>If {@code C} explicitly implements {@link Object#equals}, the deserialized instance will
       *       be checked to be equal to the instance before serialization.
       *   <li>If {@code C} doesn't explicitly implement {@code equals} but instead inherits it from a
       *       superclass, no equality check is done on the deserialized instance because it's not clear
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri May 12 19:22:18 GMT 2023
    - 17.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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 Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. guava/src/com/google/common/cache/CacheBuilder.java

     * weakValues}, or {@link #softValues softValues} perform periodic maintenance.
     *
     * <p>The caches produced by {@code CacheBuilder} are serializable, and the deserialized caches
     * retain all the configuration properties of the original cache. Note that the serialized form does
     * <i>not</i> include cache contents, but only configuration.
     *
     * <p>See the Guava User Guide article on <a
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 51.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/FunnelsTest.java

        assertSame(
            Funnels.byteArrayFunnel(), SerializableTester.reserialize(Funnels.byteArrayFunnel()));
        assertSame(Funnels.integerFunnel(), SerializableTester.reserialize(Funnels.integerFunnel()));
        assertSame(Funnels.longFunnel(), SerializableTester.reserialize(Funnels.longFunnel()));
        assertSame(
            Funnels.unencodedCharsFunnel(),
            SerializableTester.reserialize(Funnels.unencodedCharsFunnel()));
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/PredicatesTest.java

        Predicate<Class<?>> predicate = Predicates.subtypeOf(Integer.class);
        Predicate<Class<?>> reserialized = SerializableTester.reserializeAndAssert(predicate);
    
        assertEvalsLike(predicate, reserialized, Integer.class);
        assertEvalsLike(predicate, reserialized, Float.class);
        assertEvalsLike(predicate, reserialized, null);
      }
    
      /*
       * Tests for Predicates.isNull()
       */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  10. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.2K bytes
    - Viewed (0)
Back to top