Package io.molr.commons.domain
Class MissionParameter<T>
- java.lang.Object
-
- io.molr.commons.domain.MissionParameter<T>
-
public final class MissionParameter<T> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<T>
allowedValues()
T
defaultValue()
boolean
equals(Object o)
int
hashCode()
boolean
isRequired()
Map<String,Object>
meta()
static <T> MissionParameter<T>
optional(Placeholder<T> placeholder)
Placeholder<T>
placeholder()
static <T> MissionParameter<T>
required(Placeholder<T> placeholder)
String
toString()
MissionParameter<T>
withAllowed(Collection<T> newAllowedValues)
MissionParameter<T>
withDefault(T newDefaultValue)
MissionParameter<T>
withMeta(Map<String,Object> newMeta)
-
-
-
Method Detail
-
required
public static <T> MissionParameter<T> required(Placeholder<T> placeholder)
-
optional
public static <T> MissionParameter<T> optional(Placeholder<T> placeholder)
-
withDefault
public MissionParameter<T> withDefault(T newDefaultValue)
-
withAllowed
public MissionParameter<T> withAllowed(Collection<T> newAllowedValues)
-
withMeta
public MissionParameter<T> withMeta(Map<String,Object> newMeta)
-
isRequired
public boolean isRequired()
-
defaultValue
public T defaultValue()
-
placeholder
public Placeholder<T> placeholder()
-
-