Conditional

case class Conditional(func: Int => Boolean) extends StaticAnnotation

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.

Value parameters:
func

a function on a index

trait Serializable
trait Product
trait Equals
trait StaticAnnotation
class Annotation
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product