Annotation Interface Serializable


@Retention(RUNTIME) public @interface Serializable
Use this annotation when a class is going to be transferred over the network.
Author:
Lars Wesselius
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    short
    Returns the fixed serializer id for the annotated type, or 0 for auto-assignment.
    Returns the serializer class to use for the annotated type.
  • Element Details

    • serializer

      Class serializer
      Returns the serializer class to use for the annotated type.
      Returns:
      the serializer class
      Default:
      com.jme3.network.serializing.serializers.FieldSerializer.class
    • id

      short id
      Returns the fixed serializer id for the annotated type, or 0 for auto-assignment.
      Returns:
      the serializer id
      Default:
      0