◆ findSubClassParameterType()
static Class<?> fiftyone.pipeline.util.Types.findSubClassParameterType | ( | Object | instance, |
Class<?> | classOfInterest, | ||
int | parameterIndex | ||
) |
static
Get the type parameter of a class in relation to a parent class.
- Parameters
-
- instance - to get the type parameter of
- classOfInterest - a class above instance in the the inheritance hierarchy which the type of instance defines a generic type parameter of
- parameterIndex - index in the list of type parameters
- Returns
- the parameter type, or null if it could not be determined
◆ getDataTypeFromElement()
static Class<?> fiftyone.pipeline.util.Types.getDataTypeFromElement ( Object instance ) staticGet the type of ElementData which be the result of an instance's processing.
- Parameters
-
- instance - an instance extending FlowElementBase
- Returns
- element data type or null
◆ getPrimitiveTypeMap()
static Map<Class<?>, Class<?> > fiftyone.pipeline.util.Types.getPrimitiveTypeMap ( ) staticGet a map of primitive types to their boxed type e.g.
boolean and Boolean
- Returns
- primitive type map