Package ch.njol.yggdrasil
Interface ClassResolver
- All Known Implementing Classes:
ConfigurationSerializer
,EnumSerializer
,JRESerializer
,Serializer
,SimpleClassResolver
,YggdrasilSerializer
,YggdrasilSerializer
public interface ClassResolver
-
Method Summary
-
Method Details
-
getClass
Resolves a class by its ID.- Parameters:
id
- The ID used when storing objects- Returns:
- The Class object that represents data with the given ID, or null if the ID does not belong to the implementor
-
getID
Gets an ID for a Class. The ID is used to identify the type of a saved object.// TODO make sure that it's unique
- Parameters:
c
- The class to get the ID of- Returns:
- The ID of the given class, or null if this is not a class of the implementor
-