Package org.apache.maven.impl
Record Class RequestTraceHelper.ResolverTrace
java.lang.Object
java.lang.Record
org.apache.maven.impl.RequestTraceHelper.ResolverTrace
- Record Components:
session
- The current Maven sessioncontext
- The trace contexttrace
- The Resolver-specific tracemvnTrace
- The Maven-specific trace
- Enclosing class:
- RequestTraceHelper
public static record RequestTraceHelper.ResolverTrace(Session session, String context, org.eclipse.aether.RequestTrace trace, RequestTrace mvnTrace)
extends Record
Represents a resolver trace containing both Maven and Resolver-specific trace information
-
Constructor Summary
ConstructorsConstructorDescriptionResolverTrace
(Session session, String context, org.eclipse.aether.RequestTrace trace, RequestTrace mvnTrace) Creates an instance of aResolverTrace
record class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()
Returns the value of thecontext
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.mvnTrace()
Returns the value of themvnTrace
record component.session()
Returns the value of thesession
record component.final String
toString()
Returns a string representation of this record class.org.eclipse.aether.RequestTrace
trace()
Returns the value of thetrace
record component.
-
Constructor Details
-
ResolverTrace
public ResolverTrace(Session session, String context, org.eclipse.aether.RequestTrace trace, RequestTrace mvnTrace) Creates an instance of aResolverTrace
record class.
-
-
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)
. -
session
Returns the value of thesession
record component.- Returns:
- the value of the
session
record component
-
context
Returns the value of thecontext
record component.- Returns:
- the value of the
context
record component
-
trace
public org.eclipse.aether.RequestTrace trace()Returns the value of thetrace
record component.- Returns:
- the value of the
trace
record component
-
mvnTrace
Returns the value of themvnTrace
record component.- Returns:
- the value of the
mvnTrace
record component
-