Package org.eclipse.yasson.internal
Class RuntimeTypeHolder
- java.lang.Object
-
- org.eclipse.yasson.internal.RuntimeTypeHolder
-
- All Implemented Interfaces:
RuntimeTypeInfo
public class RuntimeTypeHolder extends java.lang.Object implements RuntimeTypeInfo
Holds runtime type and wrapper runtime type info if any.
-
-
Constructor Summary
Constructors Constructor Description RuntimeTypeHolder(RuntimeTypeInfo wrapper, java.lang.reflect.Type runtimeType)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.TypegetRuntimeType()Runtime type of this item.RuntimeTypeInfogetWrapper()Wrapper containing property of this type.
-
-
-
Constructor Detail
-
RuntimeTypeHolder
public RuntimeTypeHolder(RuntimeTypeInfo wrapper, java.lang.reflect.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:
getWrapperin interfaceRuntimeTypeInfo- Returns:
- wrapper
-
getRuntimeType
public java.lang.reflect.Type getRuntimeType()
Runtime type of this item.- Specified by:
getRuntimeTypein interfaceRuntimeTypeInfo- Returns:
- runtime type
-
-