Record Class BomAnalysis.CascadeIssue

java.lang.Object
java.lang.Record
network.ike.workspace.BomAnalysis.CascadeIssue
Record Components:
subprojectName - the subproject with the issue
dependsOn - the upstream subproject it depends on
hasVersionProperty - whether a version-property tracks upstream
hasWorkspaceBom - whether a workspace-internal BOM import covers the edge — either it is the upstream's own BOM, or it manages one of the upstream's published artifacts (ike-issues#794)
externalBomPins - external BOMs that manage upstream's artifacts
Enclosing class:
BomAnalysis

public static record BomAnalysis.CascadeIssue(String subprojectName, String dependsOn, boolean hasVersionProperty, boolean hasWorkspaceBom, List<BomAnalysis.BomImport> externalBomPins) extends Record
A detected cascade issue for a subproject.
  • Constructor Details

    • CascadeIssue

      public CascadeIssue(String subprojectName, String dependsOn, boolean hasVersionProperty, boolean hasWorkspaceBom, List<BomAnalysis.BomImport> externalBomPins)
      Creates an instance of a CascadeIssue record class.
      Parameters:
      subprojectName - the value for the subprojectName record component
      dependsOn - the value for the dependsOn record component
      hasVersionProperty - the value for the hasVersionProperty record component
      hasWorkspaceBom - the value for the hasWorkspaceBom record component
      externalBomPins - the value for the externalBomPins record component
  • Method Details

    • canCascade

      public boolean canCascade()
      True if feature-start can cascade versions for this edge.
      Returns:
      true if a version-property or workspace BOM exists
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      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.
    • subprojectName

      public String subprojectName()
      Returns the value of the subprojectName record component.
      Returns:
      the value of the subprojectName record component
    • dependsOn

      public String dependsOn()
      Returns the value of the dependsOn record component.
      Returns:
      the value of the dependsOn record component
    • hasVersionProperty

      public boolean hasVersionProperty()
      Returns the value of the hasVersionProperty record component.
      Returns:
      the value of the hasVersionProperty record component
    • hasWorkspaceBom

      public boolean hasWorkspaceBom()
      Returns the value of the hasWorkspaceBom record component.
      Returns:
      the value of the hasWorkspaceBom record component
    • externalBomPins

      public List<BomAnalysis.BomImport> externalBomPins()
      Returns the value of the externalBomPins record component.
      Returns:
      the value of the externalBomPins record component