@Public public final class Optional extends Object
Optional is a helper class used in specifying
whether a argument for the directive is optional or not.
This class is used when you are defining the usage for a directive argument. Following is an example :
UsageDefinition.Builder builder = UsageDefinition.builder(NAME);
builder.define("regex", TokenType.TEXT, Optional.TRUE);
return builder.build();
By default, the option is FALSE
public static final boolean TRUE
TRUE is specified.public static final boolean FALSE
FALSE is specified.
The default behavior is false.Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.