クラス NamedInterfaces

java.lang.ObjectSE
org.springframework.modulith.core.NamedInterfaces
実装されたすべてのインターフェース:
IterableSE<NamedInterface>

public class NamedInterfaces extends ObjectSE implements IterableSE<NamedInterface>
NamedInterface のコレクション。
作成者:
Oliver Drotbohm
  • フィールドの詳細

  • メソッドの詳細

    • discoverNamedInterfaces

      static NamedInterfaces discoverNamedInterfaces(JavaPackage basePackage)
      指定された JavaPackage に対して宣言されたすべての NamedInterfaces を検出します。
      パラメーター:
      basePackage - null であってはなりません。
      戻り値:
      null になることはありません。
    • of

      static NamedInterfaces of(ListSE<NamedInterface> interfaces)
      指定された NamedInterface の新しい NamedInterfaces を作成します。
      パラメーター:
      interfaces - null であってはなりません。
      戻り値:
      null になることはありません。
    • ofAnnotatedPackages

      static NamedInterfaces ofAnnotatedPackages(JavaPackage basePackage)
      指定されたベース JavaPackage に対して新しい NamedInterfaces を作成します。
      パラメーター:
      basePackage - null であってはなりません。
      戻り値:
      null になることはありません。
    • forOpen

      static NamedInterfaces forOpen(JavaPackage basePackage)
      指定された JavaPackage 内のすべてのクラスを含む名前のない NamedInterface で構成される新しい NamedInterface を作成します。
      パラメーター:
      basePackage - null であってはなりません。
      戻り値:
      null になることはありません。
      導入:
      1.2
    • hasExplicitInterfaces

      public boolean hasExplicitInterfaces()
      少なくとも 1 つの明示的な NamedInterface が宣言されているかどうかを返します。
      戻り値:
      null になることはありません。
    • stream

      public StreamSE<NamedInterface> stream()
      NamedInterfaceStreamSE を作成します。
      戻り値:
      null になることはありません。
    • getByName

      public OptionalSE<NamedInterface> getByName(StringSE name)
      指定された名前の NamedInterface が存在する場合はそれを返します。
      パラメーター:
      name - null または空であってはなりません。
      戻り値:
      null になることはありません。
    • getUnnamedInterface

      public NamedInterface getUnnamedInterface()
      モジュールの名前のない NamedInterface を返します。
      戻り値:
      null になることはありません。
    • getNamedInterfacesContaining

      public StreamSE<NamedInterface> getNamedInterfacesContaining(com.tngtech.archunit.core.domain.JavaClass type)
      指定された型を含むすべての名前付きインターフェースを返します。
      パラメーター:
      type - null であってはなりません。
      戻り値:
      null になることはありません。
    • containsInExplicitInterface

      public boolean containsInExplicitInterface(com.tngtech.archunit.core.domain.JavaClass type)
      Returns whether the given type is contained in one of the explicitly named NamedInterface s.
      パラメーター:
      type - null であってはなりません。
      導入:
      1.2
    • iterator

      public IteratorSE<NamedInterface> iterator()
      次で指定:
      インターフェース IterableSE<NamedInterface>iterator 
    • and

      指定された NamedInterface を追加して新しい NamedInterfaces インスタンスを作成します。
      パラメーター:
      others - null であってはなりません。
      戻り値:
      null になることはありません。
    • getNamedInterfacesContaining

      StreamSE<NamedInterface> getNamedInterfacesContaining(ClassSE<?> type)
    • containsInExplicitInterface

      boolean containsInExplicitInterface(ClassSE<?> type)