- java.lang.Object
-
- io.github.mmm.nls.cli.property.AbstractCliProperty<C>
-
- io.github.mmm.nls.cli.property.CliCollectionProperty<E,Set<E>>
-
- io.github.mmm.nls.cli.property.CliSetProperty<E>
-
- All Implemented Interfaces:
CliProperty<Set<E>>
public class CliSetProperty<E> extends CliCollectionProperty<E,Set<E>>
Implementation ofCliPropertyforSet.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CliSetProperty(Localizable help, CliProperty<E> property, boolean mandatory, String... names)The constructor.CliSetProperty(Localizable help, CliProperty<E> property, Set<E> defaultValue, String... names)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(E item)Set<E>get()Class<Set<E>>getValueClass()voidset(Set<E> value)-
Methods inherited from class io.github.mmm.nls.cli.property.CliCollectionProperty
addFromString, isEmpty, setFromString
-
Methods inherited from class io.github.mmm.nls.cli.property.AbstractCliProperty
getHelp, getNames, isMandatory, isOption, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.nls.cli.property.CliProperty
getAsString, getName, isValid, validate
-
-
-
-
Constructor Detail
-
CliSetProperty
public CliSetProperty(Localizable help, CliProperty<E> property, boolean mandatory, String... names)
The constructor.- Parameters:
help- thehelp message.property- theCliPropertyfor a single element (used as mapper to parse fromString).mandatory- themandatoryflag.names- thenames.
-
CliSetProperty
public CliSetProperty(Localizable help, CliProperty<E> property, Set<E> defaultValue, String... names)
The constructor.- Parameters:
help- thehelp message.defaultValue- the initial defaultvalue.property- theCliPropertyfor a single element (used as mapper to parse fromString).names- thenames.
-
-