Package tsl2.nano.cursus.effectus
Class StoredContent<T>
java.lang.Object
tsl2.nano.cursus.effectus.StoredContent<T>
- All Implemented Interfaces:
IStoredContent<T>
NOT USED YET!
Holds content, calculated once and reused on re-doing the same command again - without re-calcuation
- Author:
- Tom
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfromObject(T instance) evaluates all informations of the given object and serializes itbyte[]the serialized contentidentifer of the root object where the content belongs togetPath()path that guides from the root object (given by identifier) to the content objectcontent type descriptiontoObject()deserializes the content to the java object
-
Constructor Details
-
StoredContent
public StoredContent()
-
-
Method Details
-
getIdentifier
Description copied from interface:IStoredContentidentifer of the root object where the content belongs to- Specified by:
getIdentifierin interfaceIStoredContent<T>
-
getPath
Description copied from interface:IStoredContentpath that guides from the root object (given by identifier) to the content object- Specified by:
getPathin interfaceIStoredContent<T>
-
getTypeName
Description copied from interface:IStoredContentcontent type description- Specified by:
getTypeNamein interfaceIStoredContent<T>
-
getContent
public byte[] getContent()Description copied from interface:IStoredContentthe serialized content- Specified by:
getContentin interfaceIStoredContent<T>
-
toObject
Description copied from interface:IStoredContentdeserializes the content to the java object- Specified by:
toObjectin interfaceIStoredContent<T>
-
fromObject
Description copied from interface:IStoredContentevaluates all informations of the given object and serializes it- Specified by:
fromObjectin interfaceIStoredContent<T>
-