Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for readObject (0.16 sec)

  1. android/guava/src/com/google/common/collect/Multimaps.java

        @SuppressWarnings("unchecked") // reading data stored by writeObject
        private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
          stream.defaultReadObject();
          factory = (Supplier<? extends Collection<V>>) requireNonNull(stream.readObject());
          Map<K, Collection<V>> map = (Map<K, Collection<V>>) requireNonNull(stream.readObject());
          setMap(map);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        void readEntries(ObjectInputStream in) throws IOException, ClassNotFoundException {
          while (true) {
            K key = (K) in.readObject();
            if (key == null) {
              break; // terminator
            }
            V value = (V) in.readObject();
            delegate.put(key, value);
          }
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  3. 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)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      @Override
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm<>(this);
      }
    
      @J2ktIncompatible // java.io.ObjectInputStream
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      // This class is never actually serialized directly, but we have to make the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      @Override
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm<>(this);
      }
    
      @J2ktIncompatible // java.io.ObjectInputStream
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      // This class is never actually serialized directly, but we have to make the
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top