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 SummaryConstructorsConstructorDescriptionSourceCacheKey(Session session, RequestTrace trace, Source source, String tag) Creates an instance of aSourceCacheKeyrecord class.
- 
Method SummaryModifier 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- 
SourceCacheKeyCreates an instance of aSourceCacheKeyrecord class.- Parameters:
- session- the value for the- sessionrecord component
- trace- the value for the- tracerecord component
- source- the value for the- sourcerecord component
- tag- the value for the- tagrecord component
 
 
- 
- 
Method Details- 
getSession- Specified by:
- getSessionin interface- Request<Session>
 
- 
getTrace
- 
getCacheRetention- Specified by:
- getCacheRetentionin interface- CacheMetadata
 
- 
equalsIndicates 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
- 
toStringReturns 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.
- 
sessionReturns the value of thesessionrecord component.- Returns:
- the value of the sessionrecord component
 
- 
traceReturns the value of thetracerecord component.- Returns:
- the value of the tracerecord component
 
- 
sourceReturns the value of thesourcerecord component.- Returns:
- the value of the sourcerecord component
 
- 
tagReturns the value of thetagrecord component.- Returns:
- the value of the tagrecord component
 
 
-