extends operator

The non-associating, binary prefix extends operator is used to test whether its left-hand operand is extends its right-hand operand

Usage

void m(Type<Anything> x) {
    Boolean extension = x extends Class<Anything>;
}

Description

Definition

The extends operator is defined as follows:

lhs.extendsType(rhs);

See the language specification for more details.

Polymorphism

The extends operator is polymorphic. The meaning of extends depends on the Class class and Type interface.

Type

The result type of the entends operator is Boolean.

See also