Package org.ec4j.core.model
Class PropertyType.PropertyValue<T>
java.lang.Object
org.ec4j.core.model.PropertyType.PropertyValue<T>
- Type Parameters:
T- the type of the parsed parsed
- Enclosing class:
PropertyType<T>
The result of
Property parsed parsing. The result may either be valid when it has parsed or
invalid when it has no parsed, but it has an errorMessage.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final Tprivate final Stringprivate static final PropertyType.PropertyValueA singleton with the specialunsetsource value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static <T> PropertyType.PropertyValue<T> booleanisUnset()booleanisValid()toString()static <T> PropertyType.PropertyValue<T>
-
Field Details
-
UNSET
A singleton with the specialunsetsource value -
errorMessage
-
parsed
-
source
-
-
Constructor Details
-
PropertyValue
-
-
Method Details
-
invalid
-
valid
-
equals
-
getErrorMessage
- Returns:
- the error message describing why the parsing failed or
nullif the parsing succeeded
-
getParsed
- Returns:
- the parsed parsed or
nullif the parsing failed.
-
getSource
- Returns:
- the string from which this
PropertyType.PropertyValuewas created
-
hashCode
public int hashCode() -
isUnset
public boolean isUnset()- Returns:
trueif thesourcevalue is"unset"; otherwisefalse
-
isValid
public boolean isValid()- Returns:
trueif the parsing succeeded orfalseotherwise
-
toString
-