Skip to content

Package io.github.qishr.cascara.common.util

Interface ISetter

java.lang.Object
        io.github.qishr.cascara.common.util.CommandLine.Model.ISetter

Enclosing Class:
    io.github.qishr.cascara.common.util.CommandLine.Model

All Known Implementing Classes:
    IScope


public static interface ISetter

Customizable setter for modifying the value of an option or positional parameter.When an option or positional parameter is matched on the command line, its 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 set(T value) Sets the new value of the option or positional parameter.

Method Details

set

public abstract T set(T value)

Sets the new value of the option or positional parameter.

Parameters:

value - the new value of the option or positional parameter

Returns:

the previous value of the binding (if supported by this binding)

Throws:

Exception