Class IntersectionType

All Implemented Interfaces:
NodeWithAnnotations<IntersectionType>, NodeWithRange<Node>, NodeWithTokenRange<Node>, Observable, Visitable, HasParentNode<Node>, Resolvable<ResolvedType>, Cloneable

public class IntersectionType extends Type implements NodeWithAnnotations<IntersectionType>
Represents a set of types. A given value of this type has to be assignable to at all of the element types. As of Java 8 it is used in casts or while expressing bounds for generic types.

For example: public class A<T extends Serializable & Cloneable> { }

Or: void foo((Serializable & Cloneable)myObject);

Since:
3.0.0