public interface OptionType<T>
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(Object value)
Check if the provided value fits into the required data type.
|
String |
getName()
The name of the option type.
|
T |
parse(Object value)
Parses the provided value without checking its type.
|
String getName()
The name of the option type.
boolean check(Object value)
Check if the provided value fits into the required data type.
value - The value to check.T parse(Object value)
Parses the provided value without checking its type. The method check(Object) should be called
and checked if it returns true for the value before calling this method.
value - The value to parse.Copyright © 2017. All rights reserved.