public static final class GenericInstantiation.Builder
extends java.lang.Object
GenericInstantiation
.Constructor and Description |
---|
Builder(GenericInstantiation.GenericType genericType)
Constructor with parameters for the required properties of
GenericInstantiation . |
Modifier and Type | Method and Description |
---|---|
GenericInstantiation |
build() |
GenericInstantiation.Builder |
setElementType(Type elementType)
Type of the element parameter if the generic type instantiation is a
GenericInstantiation.GenericType.LIST ,
GenericInstantiation.GenericType.OPTIONAL or
GenericInstantiation.GenericType.SET . |
GenericInstantiation.Builder |
setMapKeyType(Type mapKeyType)
Type of the key parameter of the map generic type instantiation.
|
GenericInstantiation.Builder |
setMapValueType(Type mapValueType)
Type of the value parameter of the map generic type instantiation.
|
public Builder(GenericInstantiation.GenericType genericType)
GenericInstantiation
.public GenericInstantiation.Builder setElementType(Type elementType)
GenericInstantiation.GenericType.LIST
,
GenericInstantiation.GenericType.OPTIONAL
or
GenericInstantiation.GenericType.SET
.
This property is optional and it is only relevant when the value of getGenericType()
is one of GenericInstantiation.GenericType.LIST
,
GenericInstantiation.GenericType.OPTIONAL
,
or GenericInstantiation.GenericType.SET
.elementType
- New value for the property.public GenericInstantiation.Builder setMapKeyType(Type mapKeyType)
GenericInstantiation.getMapValueType()
..
This property is optional and it is only relevant when the value of getGenericType()
is GenericInstantiation.GenericType.MAP
.mapKeyType
- New value for the property.public GenericInstantiation.Builder setMapValueType(Type mapValueType)
GenericInstantiation.getMapKeyType()
..
This property is optional and it is only relevant when the value of getGenericType()
is GenericInstantiation.GenericType.MAP
.mapValueType
- New value for the property.public GenericInstantiation build()