Record Class CoreExtensions
java.lang.Object
java.lang.Record
org.apache.maven.api.cli.CoreExtensions
- Record Components:
source
- The source file of core extensions, is nevernull
.coreExtensions
- The configured core extensions, is nevernull
. Contents of list is guaranteed to be unique by GA.
@Experimental
public record CoreExtensions(Path source, List<CoreExtension> coreExtensions)
extends Record
Represents the list of core extensions configured at one source. The list is validated (are GA unique), but no
other logic than that is applied.
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCoreExtensions
(Path source, List<CoreExtension> coreExtensions) Creates an instance of aCoreExtensions
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoreExtensions
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CoreExtensions
Creates an instance of aCoreExtensions
record class.- Parameters:
source
- the value for thesource
record componentcoreExtensions
- the value for thecoreExtensions
record 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)
. -
source
-
coreExtensions
Returns the value of thecoreExtensions
record component.- Returns:
- the value of the
coreExtensions
record component
-