Package org.apache.maven.api.cli
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 aCoreExtensionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecoreExtensionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CoreExtensions
Creates an instance of aCoreExtensionsrecord class.- Parameters:
source- the value for thesourcerecord componentcoreExtensions- the value for thecoreExtensionsrecord component
-
-
Method Details
-
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
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. -
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
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
coreExtensions
Returns the value of thecoreExtensionsrecord component.- Returns:
- the value of the
coreExtensionsrecord component
-