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 aResolverTracerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontext()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mvnTrace()Returns the value of themvnTracerecord component.session()Returns the value of thesessionrecord component.final StringtoString()Returns a string representation of this record class.org.eclipse.aether.RequestTracetrace()Returns the value of thetracerecord component.
-
Constructor Details
-
ResolverTrace
public ResolverTrace(Session session, String context, org.eclipse.aether.RequestTrace trace, RequestTrace mvnTrace) Creates an instance of aResolverTracerecord 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 thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
trace
public org.eclipse.aether.RequestTrace trace()Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
mvnTrace
Returns the value of themvnTracerecord component.- Returns:
- the value of the
mvnTracerecord component
-