UnionType

Interface UnionType

All Superinterfaces:
AnnotatedConstruct, TypeMirror
public interface UnionType
extends TypeMirror

Represents a union type. As of the RELEASE_7 source version, union types can appear as the type of a multi-catch exception parameter.

Since:
1.7

Methods

getAlternatives

List<? extends TypeMirror> getAlternatives()

Return the alternatives comprising this union type.

Returns:
the alternatives comprising this union type.

© 1993–2017, Oracle and/or