case classConditional(func: (Int) ⇒ Boolean) extends Annotation with StaticAnnotation with Product with Serializable
Specifies a condition on a field to be parsed. This annotation is
only taken into account for repeatable types. The function provided
is given the occurence index, starting from 0, in which the field
is being parsed. If the function applied on the index return true,
then the field is parsed. Otherwise, the field is ignored.
This annotation is an experiment and may be removed in the future.
func
a function on a index
Linear Supertypes
Serializable, Serializable, Product, Equals, StaticAnnotation, Annotation, AnyRef, Any
Specifies a condition on a field to be parsed. This annotation is only taken into account for repeatable types. The function provided is given the occurence index, starting from 0, in which the field is being parsed. If the function applied on the index return true, then the field is parsed. Otherwise, the field is ignored.
This annotation is an experiment and may be removed in the future.
a function on a index