Builder

constructor(typeCondition: String, possibleTypesSet: Set<String>)

Parameters

possibleTypesSet

the possible types. The set must be robust to calling set.contains(null)


constructor(typeCondition: String, possibleTypes: List<String>)

If you have a Set around, use the primary constructor instead. This constructor is not deprecated because it's convenient to call from Java codegen.