Parameter

public final class Parameter<T extends Object>

Defines a named parameter that is expected to have a specific type, its value and whether it is optional or not. A parameter that is only used to describe available options such as in de.clayntech.yafs.provider.FileSystemProvider.getCreationParameter don't need any value.

Parameters

name

the name for the parameter

type

the type of the value for the parameter

optional

flag if the parameter is optional or not. Default: false

value

the value of the parameter: Default: `null´

Constructors

Link copied to clipboard
public Parameter<T> Parameter<T extends Any>(String name, Class<T> type, Boolean optional, T value)

Functions

Link copied to clipboard
public final String getName()
Link copied to clipboard
public final Boolean getOptional()
Link copied to clipboard
public final Class<T> getType()
Link copied to clipboard
public final T getValue()

Properties

Link copied to clipboard
private final String name
Link copied to clipboard
private final Boolean optional
Link copied to clipboard
private final Class<T> type
Link copied to clipboard
private final T value