Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 15 for SerializedForm (0.15 seconds)

  1. guava/src/com/google/common/collect/MutableClassToInstanceMap.java

      }
    
        private Object writeReplace() {
        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 {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/RegularImmutableMap.java

        @GwtIncompatible
        @J2ktIncompatible
        @SuppressWarnings("unused")
        private static final class SerializedForm<K> implements Serializable {
          final ImmutableMap<K, ?> map;
    
          SerializedForm(ImmutableMap<K, ?> map) {
            this.map = map;
          }
    
          Object readResolve() {
            return map.keySet();
          }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/ImmutableRangeSet.java

            return all();
          } else {
            return new ImmutableRangeSet<>(mergedRanges);
          }
        }
      }
    
      private static final class SerializedForm<C extends Comparable> implements Serializable {
        private final ImmutableList<Range<C>> ranges;
    
        SerializedForm(ImmutableList<Range<C>> ranges) {
          this.ranges = ranges;
        }
    
        Object readResolve() {
          if (ranges.isEmpty()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.4K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/ImmutableMapValues.java

       * expect to do so again, as discussed in https://github.com/google/guava#important-warnings.
       */
      @SuppressWarnings("unused")
      private static final class SerializedForm<V> implements Serializable {
        final ImmutableMap<?, V> map;
    
        SerializedForm(ImmutableMap<?, V> map) {
          this.map = map;
        }
    
            Object readResolve() {
          return map.values();
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

            return all();
          } else {
            return new ImmutableRangeSet<>(mergedRanges);
          }
        }
      }
    
      private static final class SerializedForm<C extends Comparable> implements Serializable {
        private final ImmutableList<Range<C>> ranges;
    
        SerializedForm(ImmutableList<Range<C>> ranges) {
          this.ranges = ranges;
        }
    
        Object readResolve() {
          if (ranges.isEmpty()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:45:58 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

       * implementation types do not leak into the serialized representation.
       */
      @J2ktIncompatible // serialization
      static final class SerializedForm implements Serializable {
        final Object[] elements;
    
        SerializedForm(Object[] elements) {
          this.elements = elements;
        }
    
        Object readResolve() {
          return copyOf(elements);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.6K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableMap.java

       * method. Publicly-accessible subclasses must override this method and should return a subclass
       * of SerializedForm whose readResolve() method returns objects of the subclass type.
       */
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm<>(this);
      }
    
      @J2ktIncompatible // java.io.ObjectInputStream
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 41.2K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/ImmutableMap.java

       * method. Publicly-accessible subclasses must override this method and should return a subclass
       * of SerializedForm whose readResolve() method returns objects of the subclass type.
       */
      @J2ktIncompatible // serialization
      Object writeReplace() {
        return new SerializedForm<>(this);
      }
    
      @J2ktIncompatible // java.io.ObjectInputStream
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 44.7K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * remain as implementation details.
       */
      @J2ktIncompatible // serialization
      private static final class SerializedForm<K, V> extends ImmutableMap.SerializedForm<K, V> {
        private final Comparator<? super K> comparator;
    
        SerializedForm(ImmutableSortedMap<K, V> sortedMap) {
          super(sortedMap);
          comparator = sortedMap.comparator();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 52.1K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       * remain as implementation details.
       */
      @J2ktIncompatible // serialization
      private static final class SerializedForm<K, V> extends ImmutableMap.SerializedForm<K, V> {
        private final Comparator<? super K> comparator;
    
        SerializedForm(ImmutableSortedMap<K, V> sortedMap) {
          super(sortedMap);
          comparator = sortedMap.comparator();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 08 18:10:02 GMT 2026
    - 54.7K bytes
    - Click Count (0)
Back to Top