public final class Parameter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Parameter.Builder
Realizes the builder pattern for a
Parameter. |
| Constructor and Description |
|---|
Parameter(String name,
Collection<Value> values)
Creates a new parameter with the given name and values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
String |
getName() |
List<Value> |
getValues() |
int |
hashCode() |
static Parameter.Builder |
parameter(String name) |
int |
size() |
String |
toString() |
public Parameter(String name, Collection<Value> values)
name - the parameters name. Should be unique inside its input parameter model. Must not be nullvalues - the values of the parameter. Must not be, nor contain null, and there need to be at least
two value. Additionally, each value id may only appear oncepublic String getName()
public int size()
public static Parameter.Builder parameter(String name)
Copyright © 2019. All rights reserved.