Class PojoModelConstructorParameterRootElement<P>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.model.impl.PojoModelConstructorParameterRootElement<P>
-
- Type Parameters:
P- The type of the constructor parameter used as a root element.
- All Implemented Interfaces:
PojoModelConstructorParameter,PojoModelElement
public class PojoModelConstructorParameterRootElement<P> extends Object implements PojoModelConstructorParameter
-
-
Constructor Summary
Constructors Constructor Description PojoModelConstructorParameterRootElement(PojoBootstrapIntrospector introspector, PojoMethodParameterModel<P> parameterModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAssignableTo(Class<?> clazz)Optional<String>name()Class<?>rawType()StringtoString()
-
-
-
Constructor Detail
-
PojoModelConstructorParameterRootElement
public PojoModelConstructorParameterRootElement(PojoBootstrapIntrospector introspector, PojoMethodParameterModel<P> parameterModel)
-
-
Method Detail
-
isAssignableTo
public boolean isAssignableTo(Class<?> clazz)
- Specified by:
isAssignableToin interfacePojoModelElement- Parameters:
clazz- AClass.- Returns:
trueif instances of the given class can be assigned to this element,falseotherwise.
-
name
public Optional<String> name()
- Specified by:
namein interfacePojoModelConstructorParameter- Returns:
- An optional containing the name of this constructor parameter, or an empty optional if it's not available (e.g. if the class was compiled without the `-parameters` compiler flag).
-
rawType
public Class<?> rawType()
- Specified by:
rawTypein interfacePojoModelConstructorParameter- Returns:
- The
Classrepresenting the raw type of this constructor parameter.
-
-