インタフェース・インタフェース
- すべてのスーパー・インタフェース:
ClassElementPREVIEW,ClassFileElementPREVIEW
public sealed interface Interfaces extends ClassElementPREVIEW
Interfacesは、JavaプラットフォームのプレビューAPIです。
プレビュー機能は、今後のリリースで削除するか、Javaプラットフォームの永続機能にアップグレードすることができます。
クラスのインタフェースをモデル化します。
ClassModelPREVIEWのトラバース時にClassElementPREVIEWとして提供されます。 - 導入されたバージョン:
- 22
-
メソッドのサマリー
修飾子と型メソッド説明このクラスのインタフェースを返します。static InterfacesPREVIEWof(ClassEntryPREVIEW... interfaces) InterfacesPREVIEW要素を返します。static InterfacesPREVIEWof(List<ClassEntryPREVIEW> interfaces) InterfacesPREVIEW要素を返します。static InterfacesPREVIEWInterfacesPREVIEW要素を返します。static InterfacesPREVIEWInterfacesPREVIEW要素を返します。
-
メソッドの詳細
-
interfaces
-
of
static InterfacesPREVIEW of(List<ClassEntryPREVIEW> interfaces) InterfacesPREVIEW要素を返します。- パラメータ:
interfaces- インタフェース- 戻り値:
- InterfacesPREVIEW要素
-
of
static InterfacesPREVIEW of(ClassEntryPREVIEW... interfaces) InterfacesPREVIEW要素を返します。- パラメータ:
interfaces- インタフェース- 戻り値:
- InterfacesPREVIEW要素
-
ofSymbols
static InterfacesPREVIEW ofSymbols(List<ClassDesc> interfaces) InterfacesPREVIEW要素を返します。- パラメータ:
interfaces- インタフェース- 戻り値:
- InterfacesPREVIEW要素
-
ofSymbols
static InterfacesPREVIEW ofSymbols(ClassDesc... interfaces) InterfacesPREVIEW要素を返します。- パラメータ:
interfaces- インタフェース- 戻り値:
- InterfacesPREVIEW要素
-
Interfacesを使用できます。