Options objects.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public static <U> OptionValue. | |
| public default boolean | |
| public static <U> OptionValue | |
| public static <U> OptionValue | |
| public default Optional | |
| public default T | |
| public default String | |
| public default Option | |
| public default OptionSpec | |
| public default void |
| asOption | back to summary |
|---|---|
| public Optional | |
| build | back to summary |
|---|---|
| public static <U> OptionValue. | |
| containsIn | back to summary |
|---|---|
| public default boolean containsIn(Options cmdline) | |
| create | back to summary |
|---|---|
| public static <U> OptionValue | |
| create | back to summary |
|---|---|
| public static <U> OptionValue | |
| findIn | back to summary |
|---|---|
public default Optional
| |
| getFrom | back to summary |
|---|---|
| public default T getFrom(Options cmdline) | |
| getName | back to summary |
|---|---|
| public default String getName() | |
| getOption | back to summary |
|---|---|
| public default Option getOption() | |
| getSpec | back to summary |
|---|---|
public default OptionSpec
| |
| ifPresentIn | back to summary |
|---|---|
| public default void ifPresentIn(Options cmdline, Consumer<T> consumer) | |
| Modifier and Type | Class and Description |
|---|---|
| private static record |
| Modifier and Type | Field and Description |
|---|---|
| private OptionValue. | |
| private T | |
| private OptionIdentifier | |
| private OptionSpec |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public OptionValue | |
| public OptionValue. | |
| public <U> OptionValue. | |
| public OptionValue. | |
| pack-priv OptionValue. | |
| public <U> OptionValue. |
| conv | back to summary |
|---|---|
| private OptionValue. | |
| defaultValue | back to summary |
|---|---|
| private T defaultValue | |
| id | back to summary |
|---|---|
| private OptionIdentifier id | |
| spec | back to summary |
|---|---|
| private OptionSpec<?> spec | |
| Builder | back to summary |
|---|---|
| public Builder() | |
| create | back to summary |
|---|---|
| public OptionValue | |
| defaultValue | back to summary |
|---|---|
| public OptionValue. | |
| from | back to summary |
|---|---|
| public <U> OptionValue. | |
| id | back to summary |
|---|---|
| public OptionValue. | |
| spec | back to summary |
|---|---|
| pack-priv OptionValue. | |
| to | back to summary |
|---|---|
| public <U> OptionValue. | |
| Modifier and Type | Field and Description |
|---|---|
| private final OptionValue | |
| private final Function |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public OptionValue | |
| public Function | |
| pack-priv OptionValue | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| base | back to summary |
|---|---|
| private final OptionValue<U> base Record Component accessed by base(). | |
| conv | back to summary |
|---|---|
| private final Function<U, V> conv Record Component accessed by conv(). | |
| Conv | back to summary |
|---|---|
| pack-priv Conv(OptionValue<U> base, Function<U, V> conv) | |
| base | back to summary |
|---|---|
| public OptionValue Record Component getter of base. | |
| conv | back to summary |
|---|---|
| public Function Record Component getter of conv. | |
| create | back to summary |
|---|---|
| pack-priv OptionValue | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static record |
| Access | Constructor and Description |
|---|---|
| private |
| Internal | back to summary |
|---|---|
| private Internal() | |
| Modifier and Type | Field and Description |
|---|---|
| private final OptionValue | |
| private final Function | |
| private final Optional | defaultValue
Record Component accessed by defaultValue(). |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public OptionValue | |
| public Function | |
| public Optional | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Optional | |
| public final int | |
| public OptionIdentifier | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| base | back to summary |
|---|---|
| private final OptionValue<U> base Record Component accessed by base(). | |
| conv | back to summary |
|---|---|
| private final Function<U, T> conv Record Component accessed by conv(). | |
| defaultValue | back to summary |
|---|---|
| private final Optional<T> defaultValue Record Component accessed by defaultValue(). | |
| Mapping | back to summary |
|---|---|
| pack-priv Mapping(OptionValue<U> base, Function<U, T> conv, Optional<T> defaultValue) | |
| asOption | back to summary |
|---|---|
| public Optional Implements jdk.
| |
| base | back to summary |
|---|---|
| public OptionValue Record Component getter of base. | |
| conv | back to summary |
|---|---|
| public Function Record Component getter of conv. | |
| defaultValue | back to summary |
|---|---|
| public Optional Record Component getter of defaultValue. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| findIn | back to summary |
|---|---|
| public Optional Overrides default jdk.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| id | back to summary |
|---|---|
| public OptionIdentifier id() Implements jdk.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Optional | defaultValue
Record Component accessed by defaultValue(). |
| private final OptionIdentifier | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public Optional | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Optional | |
| public final int | |
| public OptionIdentifier | |
| public Optional | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| defaultValue | back to summary |
|---|---|
| private final Optional<T> defaultValue Record Component accessed by defaultValue(). | |
| id | back to summary |
|---|---|
| private final OptionIdentifier id Record Component accessed by id(). | |
| spec | back to summary |
|---|---|
| private final Optional<OptionSpec<?>> spec Record Component accessed by spec(). | |
| Standard | back to summary |
|---|---|
| pack-priv Standard(OptionIdentifier id, Optional<OptionSpec<?>> spec, Optional<T> defaultValue) | |
| asOption | back to summary |
|---|---|
| public Optional Implements jdk.
| |
| defaultValue | back to summary |
|---|---|
| public Optional Record Component getter of defaultValue. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| findIn | back to summary |
|---|---|
| public Optional Overrides default jdk.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| id | back to summary |
|---|---|
| public OptionIdentifier id() Record Component getter of id. Implements jdk. | |
| spec | back to summary |
|---|---|
| public Optional Record Component getter of spec. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |