Class PayaraValueHolder<T>
- java.lang.Object
-
- fish.payara.appserver.micro.services.data.PayaraValueHolder<T>
-
- Type Parameters:
T
- value type
- All Implemented Interfaces:
Externalizable
,Serializable
public class PayaraValueHolder<T> extends Object implements Externalizable
Packages up an object into a Serializable value- Author:
- steve
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PayaraValueHolder()
PayaraValueHolder(T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
void
readExternal(ObjectInput in)
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
PayaraValueHolder
public PayaraValueHolder()
-
PayaraValueHolder
public PayaraValueHolder(T value) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getValue
public T getValue() throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
-