Interface IListItemSourcePropsMatcher<R>
- Type Parameters:
R- The return type of the matcher methods.
public interface IListItemSourcePropsMatcher<R>
Matcher on the subtype of
AListItemSourceProps. This is basically just a workaround since we can't use a
modern Java version with sealed classes and switch patterns yet...-
Method Summary
Modifier and TypeMethodDescriptionWhen the properties are of typeListItemSourcePropsAttachments.When the properties are of typeListItemSourcePropsCharacterSeparatedValues.When the properties are of typeListItemSourcePropsFieldValues.files(ListItemSourcePropsFiles props) When the properties are of typeListItemSourcePropsFiles.When the properties are of typeListItemSourcePropsFormFieldRepetitions.When the properties are of typeListItemSourcePropsJsonValue.static <R> RmatchListItemSourceProps(AListItemSourceProps props, IListItemSourcePropsMatcher<R> matcher) Matches the given properties against its subtype.When the properties are of typeListItemSourcePropsRowsOfCharacterSeparatedValues.
-
Method Details
-
attachments
When the properties are of typeListItemSourcePropsAttachments.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
characterSeparatedValues
When the properties are of typeListItemSourcePropsCharacterSeparatedValues.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
fieldValues
When the properties are of typeListItemSourcePropsFieldValues.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
files
When the properties are of typeListItemSourcePropsFiles.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
formFieldRepetitions
When the properties are of typeListItemSourcePropsFormFieldRepetitions.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
jsonValue
When the properties are of typeListItemSourcePropsJsonValue.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
rowsOfCharacterSeparatedValues
When the properties are of typeListItemSourcePropsRowsOfCharacterSeparatedValues.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
matchListItemSourceProps
static <R> R matchListItemSourceProps(AListItemSourceProps props, IListItemSourcePropsMatcher<R> matcher) Matches the given properties against its subtype.- Type Parameters:
R- The return type of the matcher methods.- Parameters:
props- The properties to match.matcher- The matcher to use.- Returns:
- The result of the corresponding matcher method, or null if the properties are null.
-