Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for SerializedForm (0.12 sec)

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

       * remain as implementation details.
       */
      @J2ktIncompatible // serialization
      private static 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DenseImmutableTable.java

      }
    
      @Override
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      Object writeReplace() {
        return SerializedForm.create(this, cellRowIndices, cellColumnIndices);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableList.java

       * implementation types do not leak into the serialized representation.
       */
      @J2ktIncompatible // serialization
      static class SerializedForm implements Serializable {
        final Object[] elements;
    
        SerializedForm(Object[] elements) {
          this.elements = elements;
        }
    
        Object readResolve() {
          return copyOf(elements);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 19:14:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/SparseImmutableTable.java

        for (Cell<R, C, V> cell : cellSet()) {
          // requireNonNull is safe because the cell exists in the table.
          cellColumnIndices[i++] = requireNonNull(columnKeyToIndex.get(cell.getColumnKey()));
        }
        return SerializedForm.create(this, cellRowIndices, cellColumnIndices);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertTrue(regular instanceof RegularContiguousSet);
        reserializeAndAssert(regular);
    
        /*
         * Make sure that we're using RegularContiguousSet.SerializedForm and not
         * ImmutableSet.SerializedForm, which would be enormous.
         */
        ContiguousSet<Integer> enormous = ContiguousSet.create(Range.<Integer>all(), integers());
        assertTrue(enormous instanceof RegularContiguousSet);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        }
      }
    
      @J2ktIncompatible // serialization
      private static final class SerializedForm<E> implements Serializable {
        final Comparator<? super E> comparator;
        final E[] elements;
        final int[] counts;
    
        @SuppressWarnings("unchecked")
        SerializedForm(SortedMultiset<E> multiset) {
          this.comparator = multiset.comparator();
          int n = multiset.entrySet().size();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       * implementation type is an implementation detail.
       */
      @J2ktIncompatible // serialization
      private static class SerializedForm<E> implements Serializable {
        final Comparator<? super E> comparator;
        final Object[] elements;
    
        public SerializedForm(Comparator<? super E> comparator, Object[] elements) {
          this.comparator = comparator;
          this.elements = elements;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

        // We serialize by default to ImmutableList, the simplest thing that works.
        return new ImmutableList.SerializedForm(toArray());
      }
    
      @J2ktIncompatible // serialization
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      /**
       * Abstract base class for builders of {@link ImmutableCollection} types.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top