Package org.apache.maven.impl.model
Record Class DefaultModelBuilder.SourceCacheKey
java.lang.Object
java.lang.Record
org.apache.maven.impl.model.DefaultModelBuilder.SourceCacheKey
- All Implemented Interfaces:
CacheMetadata,Request<Session>
- Enclosing class:
- DefaultModelBuilder
public static record DefaultModelBuilder.SourceCacheKey(Session session, RequestTrace trace, Source source, String tag)
extends Record
implements Request<Session>, CacheMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionSourceCacheKey(Session session, RequestTrace trace, Source source, String tag) Creates an instance of aSourceCacheKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.getTrace()inthashCode()Returns a hash code value for this object.session()Returns the value of thesessionrecord component.source()Returns the value of thesourcerecord component.tag()Returns the value of thetagrecord component.toString()Returns a string representation of this record class.trace()Returns the value of thetracerecord component.
-
Constructor Details
-
SourceCacheKey
Creates an instance of aSourceCacheKeyrecord class.- Parameters:
session- the value for thesessionrecord componenttrace- the value for thetracerecord componentsource- the value for thesourcerecord componenttag- the value for thetagrecord component
-
-
Method Details
-
getSession
- Specified by:
getSessionin interfaceRequest<Session>
-
getTrace
-
getCacheRetention
- Specified by:
getCacheRetentionin interfaceCacheMetadata
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
trace
Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-