Interface Interfaces
- All Superinterfaces:
ClassElementPREVIEW
,ClassFileElementPREVIEW
Interfaces
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models the interfaces of a class. Delivered as a
ClassElement
PREVIEW when traversing a ClassModel
PREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the interfaces of this class.static InterfacesPREVIEW
of
(ClassEntryPREVIEW... interfaces) Returns an Interfaces element.static InterfacesPREVIEW
of
(List<ClassEntryPREVIEW> interfaces) Returns an Interfaces element.static InterfacesPREVIEW
Returns an Interfaces element.static InterfacesPREVIEW
Returns an Interfaces element.
-
Method Details
-
interfaces
List<ClassEntryPREVIEW> interfaces()Returns the interfaces of this class.- Returns:
- the interfaces of this class
-
of
Returns an Interfaces element.- Parameters:
interfaces
- the interfaces- Returns:
- an Interfaces element
-
of
Returns an Interfaces element.- Parameters:
interfaces
- the interfaces- Returns:
- an Interfaces element
-
ofSymbols
Returns an Interfaces element.- Parameters:
interfaces
- the interfaces- Returns:
- an Interfaces element
-
ofSymbols
Returns an Interfaces element.- Parameters:
interfaces
- the interfaces- Returns:
- an Interfaces element
-
Interfaces
when preview features are enabled.