Package top.focess.util.option.type
Class LongOptionType
- java.lang.Object
-
- top.focess.util.option.type.OptionType<T>
-
- top.focess.util.option.type.ExceptionOptionType<Long>
-
- top.focess.util.option.type.LongOptionType
-
public class LongOptionType extends ExceptionOptionType<Long>
Accept long type argument
-
-
Field Summary
Fields Modifier and Type Field Description static LongOptionTypeLONG_OPTION_TYPESingle Instance for LongOptionType-
Fields inherited from class top.focess.util.option.type.OptionType
DEFAULT_OPTION_TYPE
-
-
Constructor Summary
Constructors Constructor Description LongOptionType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Longparse(String v)Parse the value to the target type.StringtoString()-
Methods inherited from class top.focess.util.option.type.ExceptionOptionType
accept
-
-
-
-
Field Detail
-
LONG_OPTION_TYPE
public static final LongOptionType LONG_OPTION_TYPE
Single Instance for LongOptionType
-
-
Method Detail
-
parse
public Long parse(String v)
Description copied from class:OptionTypeParse the value to the target type. Note: called only whenOptionType.accept(String)return true.- Specified by:
parsein classOptionType<Long>- Parameters:
v- the value- Returns:
- the target type
-
-