Package yapion.serializing
Class TypeReMapper
- java.lang.Object
-
- yapion.serializing.TypeReMapper
-
public final class TypeReMapper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TypeReMapper()
-
Method Summary
Modifier and Type Method Description TypeReMapper
addClassMapping(java.lang.Class<?> fromType, java.lang.Class<?> toType)
Add a class remapping from oneClass
type to another.TypeReMapper
addClassMapping(java.lang.Class<?> fromType, java.lang.String toType)
Add a class remapping from oneClass
type to another.TypeReMapper
addClassMapping(java.lang.String fromType, java.lang.Class<?> toType)
Add a class remapping from oneClass
type to another.TypeReMapper
addClassMapping(java.lang.String fromType, java.lang.String toType)
Add a class remapping from oneClass
type to another.TypeReMapper
addPackageMapping(java.lang.Package fromType, java.lang.Package toType)
Add a type remapping from onePackage
to another.TypeReMapper
addPackageMapping(java.lang.Package fromType, java.lang.String toType)
Add a type remapping from onePackage
to another.TypeReMapper
addPackageMapping(java.lang.String fromType, java.lang.Package toType)
Add a type remapping from onePackage
to another.TypeReMapper
addPackageMapping(java.lang.String fromType, java.lang.String toType)
Add a type remapping from onePackage
to another.TypeReMapper
copy()
Clone thisTypeReMapper
and internal state.
-
-
-
Method Detail
-
addClassMapping
public TypeReMapper addClassMapping(java.lang.String fromType, java.lang.String toType)
Add a class remapping from oneClass
type to another.- Parameters:
fromType
-Class
to map fromtoType
-Class
to map to
-
addClassMapping
public TypeReMapper addClassMapping(java.lang.Class<?> fromType, java.lang.String toType)
Add a class remapping from oneClass
type to another.- Parameters:
fromType
-Class
to map fromtoType
-Class
to map to
-
addClassMapping
public TypeReMapper addClassMapping(java.lang.String fromType, java.lang.Class<?> toType)
Add a class remapping from oneClass
type to another.- Parameters:
fromType
-Class
to map fromtoType
-Class
to map to
-
addClassMapping
public TypeReMapper addClassMapping(java.lang.Class<?> fromType, java.lang.Class<?> toType)
Add a class remapping from oneClass
type to another.- Parameters:
fromType
-Class
to map fromtoType
-Class
to map to
-
addPackageMapping
public TypeReMapper addPackageMapping(java.lang.String fromType, java.lang.String toType)
Add a type remapping from onePackage
to another.- Parameters:
fromType
-Package
to map fromtoType
-Package
to map to
-
addPackageMapping
public TypeReMapper addPackageMapping(java.lang.Package fromType, java.lang.String toType)
Add a type remapping from onePackage
to another.- Parameters:
fromType
-Package
to map fromtoType
-Package
to map to
-
addPackageMapping
public TypeReMapper addPackageMapping(java.lang.String fromType, java.lang.Package toType)
Add a type remapping from onePackage
to another.- Parameters:
fromType
-Package
to map fromtoType
-Package
to map to
-
addPackageMapping
public TypeReMapper addPackageMapping(java.lang.Package fromType, java.lang.Package toType)
Add a type remapping from onePackage
to another.- Parameters:
fromType
-Package
to map fromtoType
-Package
to map to
-
copy
public TypeReMapper copy()
Clone thisTypeReMapper
and internal state.
-
-