Package yapion.hierarchy.diff
Class YAPIONDiff.YAPIONDiffFactory
- java.lang.Object
-
- yapion.serializing.api.InstanceFactory<YAPIONDiff>
-
- yapion.hierarchy.diff.YAPIONDiff.YAPIONDiffFactory
-
- Enclosing class:
- YAPIONDiff
public static class YAPIONDiff.YAPIONDiffFactory extends InstanceFactory<YAPIONDiff>
-
-
Constructor Summary
Constructors Constructor Description YAPIONDiffFactory()
-
Method Summary
Modifier and Type Method Description YAPIONDiff
instance()
This should return an Instance of the desired class described byInstanceFactory.type()
.java.lang.Class<YAPIONDiff>
type()
Describes the Class type this Factory creates instances of.-
Methods inherited from class yapion.serializing.api.InstanceFactory
add
-
-
-
-
Method Detail
-
type
public java.lang.Class<YAPIONDiff> type()
Description copied from class:InstanceFactory
Describes the Class type this Factory creates instances of. This will be used by theYAPIONDeserializer
.- Specified by:
type
in classInstanceFactory<YAPIONDiff>
- Returns:
- the Class Type this Factory is for
-
instance
public YAPIONDiff instance()
Description copied from class:InstanceFactory
This should return an Instance of the desired class described byInstanceFactory.type()
. Each time this method is called it should return a completely new instance because theYAPIONDeserializer
would destroy other instances otherwise.- Specified by:
instance
in classInstanceFactory<YAPIONDiff>
- Returns:
- the Object instance of type
InstanceFactory.type()
-
-