Record Class DefaultModelValidator.ActivationFrame
java.lang.Object
java.lang.Record
org.apache.maven.model.validation.DefaultModelValidator.ActivationFrame
- Enclosing class:
DefaultModelValidator
private static record DefaultModelValidator.ActivationFrame(String location, Optional<? extends InputLocationTracker> parent)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thelocationrecord component.private final Optional<? extends InputLocationTracker> The field for theparentrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateActivationFrame(String location, Optional<? extends InputLocationTracker> parent) Creates an instance of aActivationFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.location()Returns the value of thelocationrecord component.Optional<? extends InputLocationTracker> parent()Returns the value of theparentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
location
The field for thelocationrecord component. -
parent
The field for theparentrecord component.
-
-
Constructor Details
-
ActivationFrame
Creates an instance of aActivationFramerecord class.- Parameters:
location- the value for thelocationrecord componentparent- the value for theparentrecord 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). -
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
parent
Returns the value of theparentrecord component.- Returns:
- the value of the
parentrecord component
-