public class DefaultPersistentDataContainer extends java.lang.Object implements PersistentDataContainer
| Constructor and Description |
|---|
DefaultPersistentDataContainer(java.io.Serializable storage,
PersistentDataType type) |
| Modifier and Type | Method and Description |
|---|---|
java.io.Serializable |
get() |
PersistentDataType |
getPersistentDataType()
the type of the data in this container.
|
void |
put(java.io.Serializable data) |
public DefaultPersistentDataContainer(java.io.Serializable storage,
PersistentDataType type)
public java.io.Serializable get()
get in interface PersistentDataContainerPersistentDataContainer.getPersistentDataType() to see the type
of this containerpublic void put(java.io.Serializable data)
put in interface PersistentDataContainerdata - the data to save for the next time. If not null, this data may
be saved and delivered back to the party the next time it
runs. Only allowed for containers of type
PersistentDataType.SERIALIZABLE.public PersistentDataType getPersistentDataType()
PersistentDataContainergetPersistentDataType in interface PersistentDataContainer