Record Class DefaultModelValidator.ActivationFrame
java.lang.Object
java.lang.Record
org.apache.maven.internal.impl.model.DefaultModelValidator.ActivationFrame
- Enclosing class:
DefaultModelValidator
private static record DefaultModelValidator.ActivationFrame(String location, Optional<? extends InputLocationTracker> parent)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thelocation
record component.private final Optional
<? extends InputLocationTracker> The field for theparent
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ActivationFrame
(String location, Optional<? extends InputLocationTracker> parent) Creates an instance of aActivationFrame
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.location()
Returns the value of thelocation
record component.Optional
<? extends InputLocationTracker> parent()
Returns the value of theparent
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
location
The field for thelocation
record component. -
parent
The field for theparent
record component.
-
-
Constructor Details
-
ActivationFrame
Creates an instance of aActivationFrame
record class.- Parameters:
location
- the value for thelocation
record componentparent
- the value for theparent
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)
. -
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
parent
Returns the value of theparent
record component.- Returns:
- the value of the
parent
record component
-