Module com.github.sormuras.bach
Record Class Maven.Builder
java.lang.Object
java.lang.Record
com.github.sormuras.bach.external.Maven.Builder
- Enclosing class:
- Maven
public static record Maven.Builder(String repository, String group, String artifact, String version, String classifier, String type)
extends Record
A builder of Maven coordinates.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionartifact()
Returns the value of theartifact
record component.build()
Returns the value of theclassifier
record component.classifier
(String classifier) final boolean
Indicates whether some other object is "equal to" this one.group()
Returns the value of thegroup
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of therepository
record component.repository
(String repository) final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.version()
Returns the value of theversion
record component.
-
Constructor Details
-
Builder
-
Builder
public Builder(String repository, String group, String artifact, String version, String classifier, String type) Creates an instance of aBuilder
record class.- Parameters:
repository
- the value for therepository
record componentgroup
- the value for thegroup
record componentartifact
- the value for theartifact
record componentversion
- the value for theversion
record componentclassifier
- the value for theclassifier
record componenttype
- the value for thetype
record component
-
-
Method Details
-
build
-
repository
-
group
-
artifact
-
version
-
classifier
-
type
-
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. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
repository
Returns the value of therepository
record component.- Returns:
- the value of the
repository
record component
-
group
Returns the value of thegroup
record component.- Returns:
- the value of the
group
record component
-
artifact
Returns the value of theartifact
record component.- Returns:
- the value of the
artifact
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
classifier
Returns the value of theclassifier
record component.- Returns:
- the value of the
classifier
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-