Package org.jppf.io

Class SerializableObject<T>

java.lang.Object
org.jppf.io.SerializableObject<T>
Type Parameters:
T - the type of of object to handle.
All Implemented Interfaces:
Serializable, JPPFSerializable<T>

public class SerializableObject<T> extends Object implements JPPFSerializable<T>
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • SerializableObject

      public SerializableObject()
      Default construction.
    • SerializableObject

      public SerializableObject(T object)
      Initialize with the specified object.
      Parameters:
      object - the handled object.
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface JPPFSerializable<T>
      Returns:
      the deserialized result.
    • set

      public void set(T object)
      Description copied from interface: JPPFSerializable
      Set the handled object.
      Specified by:
      set in interface JPPFSerializable<T>
      Parameters:
      object - the object to set.