T
- the type of the parameterpublic static class PreferredConstructor.Parameter<T,P extends PersistentProperty<P>> extends Object
Constructor and Description |
---|
Parameter(String name,
TypeInformation<T> type,
Annotation[] annotations,
PersistentEntity<T,P> entity)
Creates a new
PreferredConstructor.Parameter with the given name, TypeInformation as well as an array of
Annotation s. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getName()
Returns the name of the parameter.
|
Class<T> |
getRawType()
Returns the raw resolved type of the parameter.
|
String |
getSpelExpression()
Returns the key to be used when looking up a source data structure to populate the actual parameter value.
|
TypeInformation<T> |
getType()
Returns the
TypeInformation of the parameter. |
int |
hashCode() |
boolean |
hasSpelExpression()
Returns whether the constructor parameter is equipped with a SpEL expression.
|
public Parameter(@Nullable String name, TypeInformation<T> type, Annotation[] annotations, @Nullable PersistentEntity<T,P> entity)
PreferredConstructor.Parameter
with the given name, TypeInformation
as well as an array of
Annotation
s. Will inspect the annotations for an Value
annotation to lookup a key or an SpEL
expression to be evaluated.name
- the name of the parameter, can be nulltype
- must not be nullannotations
- must not be null but can be emptyentity
- must not be null.public TypeInformation<T> getType()
TypeInformation
of the parameter.public String getSpelExpression()
public boolean hasSpelExpression()
protected boolean canEqual(Object other)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.