Package org.eclipse.yasson.internal
Class RuntimeTypeHolder
- java.lang.Object
-
- org.eclipse.yasson.internal.RuntimeTypeHolder
-
- All Implemented Interfaces:
RuntimeTypeInfo
public class RuntimeTypeHolder extends Object implements RuntimeTypeInfo
Holds runtime type and wrapper runtime type info if any.
-
-
Constructor Summary
Constructors Constructor Description RuntimeTypeHolder(RuntimeTypeInfo wrapper, Type runtimeType)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getRuntimeType()
Runtime type of this item.RuntimeTypeInfo
getWrapper()
Wrapper containing property of this type.
-
-
-
Constructor Detail
-
RuntimeTypeHolder
public RuntimeTypeHolder(RuntimeTypeInfo wrapper, Type runtimeType)
Creates a new instance.- Parameters:
wrapper
- runtime info about classruntimeType
- class type
-
-
Method Detail
-
getWrapper
public RuntimeTypeInfo getWrapper()
Wrapper containing property of this type.- Specified by:
getWrapper
in interfaceRuntimeTypeInfo
- Returns:
- wrapper
-
getRuntimeType
public Type getRuntimeType()
Runtime type of this item.- Specified by:
getRuntimeType
in interfaceRuntimeTypeInfo
- Returns:
- runtime type
-
-