Package org.apache.maven.graph
Record Class FilteredProjectDependencyGraph.Key
java.lang.Object
java.lang.Record
org.apache.maven.graph.FilteredProjectDependencyGraph.Key
- Enclosing class:
FilteredProjectDependencyGraph
private static record FilteredProjectDependencyGraph.Key(MavenProject project, boolean transitive, boolean upstream)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MavenProjectThe field for theprojectrecord component.private final booleanThe field for thetransitiverecord component.private final booleanThe field for theupstreamrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateKey(MavenProject project, boolean transitive, boolean upstream) Creates an instance of aKeyrecord 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.project()Returns the value of theprojectrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetransitiverecord component.booleanupstream()Returns the value of theupstreamrecord component.
-
Field Details
-
project
The field for theprojectrecord component. -
transitive
private final boolean transitiveThe field for thetransitiverecord component. -
upstream
private final boolean upstreamThe field for theupstreamrecord component.
-
-
Constructor Details
-
Key
Creates an instance of aKeyrecord class.- Parameters:
project- the value for theprojectrecord componenttransitive- the value for thetransitiverecord componentupstream- the value for theupstreamrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
project
Returns the value of theprojectrecord component.- Returns:
- the value of the
projectrecord component
-
transitive
public boolean transitive()Returns the value of thetransitiverecord component.- Returns:
- the value of the
transitiverecord component
-
upstream
public boolean upstream()Returns the value of theupstreamrecord component.- Returns:
- the value of the
upstreamrecord component
-