org.keridwen.core.data.storage.packet
Class PointerDataPacketUnsafe<ObjectType>
java.lang.Object
org.keridwen.core.data.storage.packet.DataPacket<ObjectType>
org.keridwen.core.data.storage.packet.DataPacketUnsafe<ObjectType>
org.keridwen.core.data.storage.packet.PointerDataPacketUnsafe<ObjectType>
public class PointerDataPacketUnsafe<ObjectType>
- extends DataPacketUnsafe<ObjectType>
- Author:
- JeT - Artenum, Benoit Thiebault - Artenum
This DataModel class is the storage space of any kind of data within Keridwen.
It doesn't store the data. It is used when a the object pointer is stored directly
into the Accessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PointerDataPacketUnsafe
public PointerDataPacketUnsafe(Class<ObjectType> packetDataType,
UniqueIdGenerator<DataPacketId> idGenerator)
- Constructor
- Parameters:
packetName
- packetDataType
-
getPacketDataType
public Class<?> getPacketDataType()
- Description copied from class:
DataPacket
- Type of data managed by this packet
- Specified by:
getPacketDataType
in class DataPacket<ObjectType>
- Returns:
- the packetDataType
- See Also:
DataPacket.getPacketDataType()
getData
public ObjectType getData()
- Description copied from class:
DataPacketUnsafe
- Get a direct access to the stored data
- Specified by:
getData
in class DataPacketUnsafe<ObjectType>
- Returns:
- See Also:
DataPacketUnsafe.getData()
setData
public void setData(ObjectType object)
- Description copied from class:
DataPacketUnsafe
- Direct storage of a pointer
- Specified by:
setData
in class DataPacketUnsafe<ObjectType>
- See Also:
DataPacketUnsafe.setData(java.lang.Object)
Copyright © 2010-2013 Artenum. All Rights Reserved.