ParameterList

public final class ParameterList implements Iterable<Parameter<?>>

A list of parameters for easier handling.

Parameters

parameters

the parameters for the list

Constructors

Link copied to clipboard
public ParameterList ParameterList(Parameter<?> parameter)

Creates a new ParameterList with the given parameter

Link copied to clipboard
public ParameterList ParameterList(List<Parameter<?>> parameters)

Functions

Link copied to clipboard
public Unit forEach(Consumer<? super Parameter<?>> p0)
Link copied to clipboard
public final Parameter<?> get(String name)

Returns the parameter with the given name if available.

public final Parameter<T> get<T extends Any>(String name, Class<T> type)

Returns the parameter with the given name and type if available. If there is a parameter with the given name but a different type null gets returned.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Unit verify(List<Parameter<?>> allowedParameters)

Verifies if the parameters in this list matches the allowedParameters. The lists can have different number of elements. The parameters in the allowedParameters list that are not Parameter.optional must be in this list and all parameters in this list must match the type of the parameters with the same name in allowedParameters