src/share/classes/javax/lang/model/type/UnionType.java

Print this page

        

*** 26,49 **** package javax.lang.model.type; import java.util.List; /** ! * Represents a disjunctive type. * * As of the {@link javax.lang.model.SourceVersion#RELEASE_7 ! * RELEASE_7} source version, disjunctive types can appear as the type * of a multi-catch exception parameter. * * @since 1.7 */ ! public interface DisjunctiveType extends TypeMirror { /** ! * Return the alternatives comprising this disjunctive type. * ! * The alternatives are formally referred to as <i>disjuncts</i>. ! * ! * @return the alternatives comprising this disjunctive type. */ List<? extends TypeMirror> getAlternatives(); } --- 26,47 ---- package javax.lang.model.type; import java.util.List; /** ! * Represents a union type. * * As of the {@link javax.lang.model.SourceVersion#RELEASE_7 ! * RELEASE_7} source version, union types can appear as the type * of a multi-catch exception parameter. * * @since 1.7 */ ! public interface UnionType extends TypeMirror { /** ! * Return the alternatives comprising this union type. * ! * @return the alternatives comprising this union type. */ List<? extends TypeMirror> getAlternatives(); }