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 MavenProject
The field for theproject
record component.private final boolean
The field for thetransitive
record component.private final boolean
The field for theupstream
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Key
(MavenProject project, boolean transitive, boolean upstream) Creates an instance of aKey
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.project()
Returns the value of theproject
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of thetransitive
record component.boolean
upstream()
Returns the value of theupstream
record component.
-
Field Details
-
project
The field for theproject
record component. -
transitive
private final boolean transitiveThe field for thetransitive
record component. -
upstream
private final boolean upstreamThe field for theupstream
record component.
-
-
Constructor Details
-
Key
Creates an instance of aKey
record class.- Parameters:
project
- the value for theproject
record componenttransitive
- the value for thetransitive
record componentupstream
- the value for theupstream
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
project
Returns the value of theproject
record component.- Returns:
- the value of the
project
record component
-
transitive
public boolean transitive()Returns the value of thetransitive
record component.- Returns:
- the value of the
transitive
record component
-
upstream
public boolean upstream()Returns the value of theupstream
record component.- Returns:
- the value of the
upstream
record component
-