Record Class BomEntry
java.lang.Object
java.lang.Record
network.ike.plugin.BomEntry
- Record Components:
groupId- Maven group IDartifactId- Maven artifact IDversion- resolved version stringclassifier- optional classifier (e.g., "claude"); null if absenttype- packaging type (e.g., "jar", "zip"); null defaults to jarscope- dependency scope (e.g., "test", "provided"); null defaults to compile
public record BomEntry(String groupId, String artifactId, String version, String classifier, String type, String scope)
extends Record
A single dependency entry in a Bill of Materials POM.
Decouples BOM XML generation from Maven's Dependency model
so the generation logic is testable with plain records.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.Returns the value of theclassifierrecord component.final booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
BomEntry
public BomEntry(String groupId, String artifactId, String version, String classifier, String type, String scope) Creates an instance of aBomEntryrecord class.- Parameters:
groupId- the value for thegroupIdrecord componentartifactId- the value for theartifactIdrecord componentversion- the value for theversionrecord componentclassifier- the value for theclassifierrecord componenttype- the value for thetyperecord componentscope- the value for thescoperecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
groupId
-
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
version
-
classifier
Returns the value of theclassifierrecord component.- Returns:
- the value of the
classifierrecord component
-
type
-
scope
-