- All Superinterfaces:
Serializable
- Enclosing class:
AoTextField<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Parses the non-null text into the type-specific value or
Optional.empty() if field is empty
or effectively empty (such as white-space only depending on parser).- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AoTextField.Parser<Integer> Trims and parses anInteger, returningOptional.empty()when empty after trimming.static final AoTextField.Parser<String> Parses aString, returningOptional.empty()empty.static final AoTextField.Parser<String> Trims aString, returningOptional.empty()when empty after trimming. -
Method Summary
Modifier and TypeMethodDescriptionParses the non-null text into the type-specific value orOptional.empty()if field is empty or effectively empty (such as white-space only depending on parser).
-
Field Details
-
INTEGER
Trims and parses anInteger, returningOptional.empty()when empty after trimming. -
STRING
Parses aString, returningOptional.empty()empty.- See Also:
-
TRIMMED_STRING
Trims aString, returningOptional.empty()when empty after trimming.- See Also:
-
-
Method Details
-
parse
Parses the non-null text into the type-specific value orOptional.empty()if field is empty or effectively empty (such as white-space only depending on parser).- Throws:
ParseException
-
