public class TypedOption<T,R> extends Object
| Constructor and Description |
|---|
TypedOption(String name,
boolean required,
String desc,
com.google.common.base.Predicate<T> pred,
Class<T> type,
T value) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
check(Object value) |
protected R |
convert(T value) |
Class<T> |
dataType() |
R |
defaultValue() |
String |
desc() |
protected boolean |
forList() |
String |
name() |
protected T |
parse(String value) |
protected Object |
parse(String value,
Class<?> dataType) |
R |
parseConvert(String value) |
boolean |
required() |
String |
toString() |
Copyright © 2021. All rights reserved.