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