|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.keridwen.core.data.storage.packet.ObjectAccessorUnsafe<ObjectType>
public class ObjectAccessorUnsafe<ObjectType>
Constructor Summary | |
---|---|
ObjectAccessorUnsafe(Class<? extends ObjectType> objectClass)
Constructor using a null object |
Method Summary | |
---|---|
ObjectType |
getContent()
|
Class<?>[] |
getDataTypes()
get the list of data types this accessor can manage |
AccessorId |
getId()
Get the Id |
AccessorMode |
getMode()
tell if the accessor is safe or not |
void |
readUnsafe(DataPacketUnsafe<ObjectType> packet)
read data from a DataPacket in unsafe mode |
void |
setObject(ObjectType object)
|
void |
unsafeWrite(DataPacketUnsafe<ObjectType> packet)
write data to the DataPacket in unsafe mode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectAccessorUnsafe(Class<? extends ObjectType> objectClass)
objectClass
- class o the null objectMethod Detail |
---|
public AccessorId getId()
Accessor
getId
in interface Accessor<ObjectType>
Accessor.getId()
public Class<?>[] getDataTypes()
Accessor
getDataTypes
in interface Accessor<ObjectType>
Accessor.getDataTypes()
public ObjectType getContent()
getContent
in interface AccessorUnsafe<ObjectType>
public void setObject(ObjectType object)
setObject
in interface AccessorUnsafe<ObjectType>
object
- the object to setpublic void readUnsafe(DataPacketUnsafe<ObjectType> packet)
AccessorUnsafe
readUnsafe
in interface AccessorUnsafe<ObjectType>
org.keridwen.core.data.storage.packet.Accessor#readUnsafe(org.keridwen.core.data.storage.packet.DataPacketUnsafe)
public void unsafeWrite(DataPacketUnsafe<ObjectType> packet)
AccessorUnsafe
unsafeWrite
in interface AccessorUnsafe<ObjectType>
org.keridwen.core.data.storage.packet.Accessor#unsafeWrite(org.keridwen.core.data.storage.packet.DataPacketUnsafe)
public AccessorMode getMode()
Accessor
getMode
in interface Accessor<ObjectType>
org.keridwen.core.data.storage.packet.Accessor#isSafe()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |