Class UnionType.Builder

java.lang.Object
com.google.javascript.rhino.jstype.UnionType.Builder
Enclosing class:
UnionType

public static final class UnionType.Builder extends Object
Implements type unioning logic, since UnionTypes only actually need to perform unioning operations when being (re)built.

UnionType.Builders exist in two forms. One for assembing a new union and one for updating an existing union. Only the former is exposed.

Most users of this class should prefer JSTypeRegistry.createUnionType(com.google.javascript.rhino.jstype.JSType...) instead.