Interface DataSerializableFactory

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

@FunctionalInterface public interface DataSerializableFactory
DataSerializableFactory is used to create IdentifiedDataSerializable instances during de-serialization.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int typeId)
    Creates an IdentifiedDataSerializable instance using given type ID
  • Method Details

    • create

      IdentifiedDataSerializable create(int typeId)
      Creates an IdentifiedDataSerializable instance using given type ID
      Parameters:
      typeId - IdentifiedDataSerializable type ID
      Returns:
      IdentifiedDataSerializable instance or null if type ID is not known by this factory