Interface PortableFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated(since="5.4", forRemoval=true) @FunctionalInterface public interface PortableFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Portable Serialization has been deprecated. We recommend you use Compact Serialization as Portable Serialization will be removed as of version 7.0.
PortableFactory is used to create Portable instances during de-serialization.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int classId)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a Portable instance using the given class ID
  • Method Details

    • create

      Portable create(int classId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a Portable instance using the given class ID
      Parameters:
      classId - portable class ID
      Returns:
      portable instance or null if class ID is not known by this factory