Interface IListItemSourcePropsMatcher<R>
-
- Type Parameters:
R- The return type of the matcher methods.
public interface IListItemSourcePropsMatcher<R>Matcher on the subtype ofAListItemSourceProps. This is basically just a workaround since we can't use a modern Java version with sealed classes and switch patterns yet...
-
-
Method Summary
-
-
-
Method Detail
-
attachments
R attachments(ListItemSourcePropsAttachments props)
When the properties are of typeListItemSourcePropsAttachments.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
characterSeparatedValues
R characterSeparatedValues(ListItemSourcePropsCharacterSeparatedValues props)
When the properties are of typeListItemSourcePropsCharacterSeparatedValues.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
fieldValues
R fieldValues(ListItemSourcePropsFieldValues props)
When the properties are of typeListItemSourcePropsFieldValues.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
files
R files(ListItemSourcePropsFiles props)
When the properties are of typeListItemSourcePropsFiles.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
formFieldRepetitions
R formFieldRepetitions(ListItemSourcePropsFormFieldRepetitions props)
When the properties are of typeListItemSourcePropsFormFieldRepetitions.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
jsonValue
R jsonValue(ListItemSourcePropsJsonValue props)
When the properties are of typeListItemSourcePropsJsonValue.- Parameters:
props- The matched properties.- Returns:
- The result of the matcher.
-
rowsOfCharacterSeparatedValues
R rowsOfCharacterSeparatedValues(ListItemSourcePropsRowsOfCharacterSeparatedValues props)
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.
-
-