Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 67 for serialize (0.92 sec)

  1. 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()));
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/collect/testing/SafeTreeSetTest.java

        SerializableTester.reserializeAndAssert(map.entrySet());
        SerializableTester.reserializeAndAssert(map.keySet());
        assertEquals(
            Lists.newArrayList(map.values()),
            Lists.newArrayList(SerializableTester.reserialize(map.values())));
      }
    
      @GwtIncompatible // SerializableTester
      public void testEmpty_serialization() {
        SortedSet<String> set = new SafeTreeSet<>();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/SetTestSuiteBuilder.java

        }
    
        @Override
        public SampleElements<E> samples() {
          return gen.samples();
        }
    
        @Override
        public Set<E> create(Object... elements) {
          return (Set<E>) SerializableTester.reserialize(gen.create(elements));
        }
    
        @Override
        public E[] createArray(int length) {
          return gen.createArray(length);
        }
    
        @Override
        public Iterable<E> order(List<E> insertionOrder) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MutableClassToInstanceMap.java

        return new SerializedForm<>(delegate());
      }
    
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      /** Serialized form of the map, to avoid serializing the constraint. */
      private static final class SerializedForm<B extends @Nullable Object> implements Serializable {
        private final Map<Class<? extends @NonNull B>, B> backingMap;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

            .addEqualityGroup(
                newDelegatingListWithEquals(LIST1),
                newDelegatingListWithEquals(LIST1),
                SerializableTester.reserialize(newDelegatingListWithEquals(LIST1)))
            .addEqualityGroup(
                newDelegatingListWithEquals(LIST2),
                newProxyWithSubHandler1(LIST2), // Makes sure type of handler doesn't affect equality
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AtomicDouble.java

      }
    
      /** Returns the value of this {@code AtomicDouble} as a {@code double}. */
      @Override
      public double doubleValue() {
        return get();
      }
    
      /**
       * Saves the state to a stream (that is, serializes it).
       *
       * @serialData The current value is emitted (a {@code double}).
       */
      private void writeObject(java.io.ObjectOutputStream s) throws java.io.IOException {
        s.defaultWriteObject();
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 28 21:00:54 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

          if (i == iMax) {
            return b.append(']').toString();
          }
          b.append(',').append(' ');
        }
      }
    
      /**
       * Saves the state to a stream (that is, serializes it).
       *
       * @serialData The length of the array is emitted (int), followed by all of its elements (each a
       *     {@code double}) in the proper order.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableSet.java

     */
    @ElementTypesAreNonnullByDefault
    final class SingletonImmutableSet<E> extends ImmutableSet<E> {
    
      // This reference is used both by the custom field serializer, and by the
      // GWT compiler to infer the elements of the lists that needs to be
      // serialized.
      //
      // Although this reference is non-final, it doesn't change after set creation.
      E element;
    
      SingletonImmutableSet(E element) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java

      static final RegularImmutableBiMap<Object, Object> EMPTY =
          new RegularImmutableBiMap<Object, Object>();
    
      // This reference is used both by the GWT compiler to infer the elements
      // of the lists that needs to be serialized.
      private ImmutableBiMap<V, K> inverse;
    
      @SuppressWarnings("unchecked") // used only for the empty map, which works for any types
      RegularImmutableBiMap() {
        super(new RegularImmutableMap<K, V>(new HashMap<K, V>()));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top