Package dev.orne.test.rnd.params
Interface SimpleGenericParameters.Builder
- All Known Implementing Classes:
SimpleGenericParametersImpl
- Enclosing interface:
- SimpleGenericParameters
public static interface SimpleGenericParameters.Builder
Interface for
SimpleGenericParameters
builders.- Since:
- SimpleGenericParameters 1.0
- Version:
- 1.0, 2022-12
- Author:
- (w) Iker Hernaez
-
Method Summary
Modifier and TypeMethodDescription@NotNull SimpleGenericParameters
withElementsType
(@NotNull Class<?> type) Creates a new instance of generation parameters with the specified class as list components type.@NotNull SimpleGenericParameters
withElementsType
(@NotNull GenericArrayType type) Creates a new instance of generation parameters with the specified generic array type as list components type.@NotNull SimpleGenericParameters
withElementsType
(@NotNull ParameterizedType type) Creates a new instance of generation parameters with the specified parameterized type as list components type.
-
Method Details
-
withElementsType
Creates a new instance of generation parameters with the specified class as list components type.- Parameters:
type
- The list components type.- Returns:
- The resulting generation parameters.
-
withElementsType
@NotNull @NotNull SimpleGenericParameters withElementsType(@NotNull @NotNull ParameterizedType type) Creates a new instance of generation parameters with the specified parameterized type as list components type.- Parameters:
type
- The list components type.- Returns:
- The resulting generation parameters.
-
withElementsType
Creates a new instance of generation parameters with the specified generic array type as list components type.- Parameters:
type
- The list components type.- Returns:
- The resulting generation parameters.
-