Record Class DiscoveredProject

java.lang.Object
java.lang.Record
dev.archunitjava.importer.DiscoveredProject

public record DiscoveredProject(Path root, BuildSystem buildSystem, List<Path> mainClassDirectories, List<Path> testClassDirectories, List<Path> metadataFiles) extends Record
A selected project root and its declared or conventional compiled-output layout.
  • Constructor Details

    • DiscoveredProject

      public DiscoveredProject(Path root, BuildSystem buildSystem, List<Path> mainClassDirectories, List<Path> testClassDirectories, List<Path> metadataFiles)
      Creates an instance of a DiscoveredProject record class.
      Parameters:
      root - the value for the root record component
      buildSystem - the value for the buildSystem record component
      mainClassDirectories - the value for the mainClassDirectories record component
      testClassDirectories - the value for the testClassDirectories record component
      metadataFiles - the value for the metadataFiles record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • root

      public Path root()
      Returns the value of the root record component.
      Returns:
      the value of the root record component
    • buildSystem

      public BuildSystem buildSystem()
      Returns the value of the buildSystem record component.
      Returns:
      the value of the buildSystem record component
    • mainClassDirectories

      public List<Path> mainClassDirectories()
      Returns the value of the mainClassDirectories record component.
      Returns:
      the value of the mainClassDirectories record component
    • testClassDirectories

      public List<Path> testClassDirectories()
      Returns the value of the testClassDirectories record component.
      Returns:
      the value of the testClassDirectories record component
    • metadataFiles

      public List<Path> metadataFiles()
      Returns the value of the metadataFiles record component.
      Returns:
      the value of the metadataFiles record component