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 YAPIONDiffinstance()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:InstanceFactoryDescribes the Class type this Factory creates instances of. This will be used by theYAPIONDeserializer.- Specified by:
typein classInstanceFactory<YAPIONDiff>- Returns:
- the Class Type this Factory is for
-
instance
public YAPIONDiff instance()
Description copied from class:InstanceFactoryThis 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 theYAPIONDeserializerwould destroy other instances otherwise.- Specified by:
instancein classInstanceFactory<YAPIONDiff>- Returns:
- the Object instance of type
InstanceFactory.type()
-
-