Package io.github.qishr.cascara.common.util
Interface IGetter
java.lang.Object
io.github.qishr.cascara.common.util.CommandLine.Model.IGetter
Enclosing Class:
io.github.qishr.cascara.common.util.CommandLine.Model
All Known Implementing Classes:
IScope
public static interface IGetter
Customizable getter for obtaining the current value of an option or positional parameter.When an option or positional parameter is matched on the command line, its getter or setter is invoked to capture the value. For example, an option can be bound to a field or a method, and when the option is matched on the command line, the field's value is set or the method is invoked with the option parameter value.
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract T | get() | Returns the current value of the binding. |
Method Details
get
public abstract T get()
Returns the current value of the binding.For multi-value options and positional parameters, this method returns an array, collection or map to add values to.
Throws: