Package org.apache.maven.execution
Record Class ProjectActivation.ProjectActivationSettings
java.lang.Object
java.lang.Record
org.apache.maven.execution.ProjectActivation.ProjectActivationSettings
- Record Components:
selector
- the selector of a project, which can be the project directory, [groupId]:[artifactId] or :[artifactId]activationSettings
- describes how/when to active or deactivate the project
- Enclosing class:
- ProjectActivation
public static record ProjectActivation.ProjectActivationSettings(String selector, ActivationSettings activationSettings)
extends Record
ProjectActivationSettings
-
Constructor Summary
ConstructorsConstructorDescriptionProjectActivationSettings
(String selector, ActivationSettings activationSettings) Creates an instance of aProjectActivationSettings
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactivationSettings
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.selector()
Returns the value of theselector
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ProjectActivationSettings
Creates an instance of aProjectActivationSettings
record class.- Parameters:
selector
- the value for theselector
record componentactivationSettings
- the value for theactivationSettings
record 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)
. -
selector
Returns the value of theselector
record component.- Returns:
- the value of the
selector
record component
-
activationSettings
Returns the value of theactivationSettings
record component.- Returns:
- the value of the
activationSettings
record component
-