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
ClassElementPREVIEW when traversing a ClassModelPREVIEW.- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionReturns the interfaces of this class.static InterfacesPREVIEWof(ClassEntryPREVIEW... interfaces) Returns an Interfaces element.static InterfacesPREVIEWof(List<ClassEntryPREVIEW> interfaces) Returns an Interfaces element.static InterfacesPREVIEWReturns an Interfaces element.static InterfacesPREVIEWReturns 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
-
Interfaceswhen preview features are enabled.