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 InterfacesPREVIEW element.static InterfacesPREVIEW
of
(List<ClassEntryPREVIEW> interfaces) Returns an InterfacesPREVIEW element.static InterfacesPREVIEW
Returns an InterfacesPREVIEW element.static InterfacesPREVIEW
Returns an InterfacesPREVIEW element.
-
Method Details
-
interfaces
List<ClassEntryPREVIEW> interfaces()Returns the interfaces of this class.- Returns:
- the interfaces of this class
-
of
Returns an InterfacesPREVIEW element.- Parameters:
interfaces
- the interfaces- Returns:
- an InterfacesPREVIEW element
-
of
Returns an InterfacesPREVIEW element.- Parameters:
interfaces
- the interfaces- Returns:
- an InterfacesPREVIEW element
-
ofSymbols
Returns an InterfacesPREVIEW element.- Parameters:
interfaces
- the interfaces- Returns:
- an InterfacesPREVIEW element
-
ofSymbols
Returns an InterfacesPREVIEW element.- Parameters:
interfaces
- the interfaces- Returns:
- an InterfacesPREVIEW element
-
Interfaces
when preview features are enabled.