Record Class CacheControl
java.lang.Object
java.lang.Record
io.micronaut.http.cachecontrol.CacheControl
- Record Components:
responseDirectives- response Directives
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCacheControl(List<io.micronaut.http.cachecontrol.CacheControl.CacheControlResponseDirective> responseDirectives) Creates an instance of aCacheControlrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheControl.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<io.micronaut.http.cachecontrol.CacheControl.CacheControlResponseDirective> Returns the value of theresponseDirectivesrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
CacheControl
public CacheControl(List<io.micronaut.http.cachecontrol.CacheControl.CacheControlResponseDirective> responseDirectives) Creates an instance of aCacheControlrecord class.- Parameters:
responseDirectives- the value for theresponseDirectivesrecord component
-
-
Method Details
-
toString
-
builder
- Returns:
- Cache-Control Builder.
-
hashCode
-
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). -
responseDirectives
public List<io.micronaut.http.cachecontrol.CacheControl.CacheControlResponseDirective> responseDirectives()Returns the value of theresponseDirectivesrecord component.- Returns:
- the value of the
responseDirectivesrecord component
-