Record Class AbstractCacheControlPanel.Body
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.cache.AbstractCacheControlPanel.Body
- Record Components:
cache- the cache instancecacheInfo- the cache informationcacheAsMap- the cache contents as a map
- Enclosing class:
AbstractCacheControlPanel<C extends io.micronaut.cache.SyncCache<?>>
public static record AbstractCacheControlPanel.Body(io.micronaut.cache.Cache<?> cache, io.micronaut.cache.CacheInfo cacheInfo, Map<String,Object> cacheAsMap)
extends Record
Record containing the data to display in the cache control panel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.cache.Cache<?> cache()Returns the value of thecacherecord component.Returns the value of thecacheAsMaprecord component.io.micronaut.cache.CacheInfoReturns the value of thecacheInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Body
public Body(io.micronaut.cache.Cache<?> cache, io.micronaut.cache.CacheInfo cacheInfo, Map<String, Object> cacheAsMap) Creates an instance of aBodyrecord class.- Parameters:
cache- the value for thecacherecord componentcacheInfo- the value for thecacheInforecord componentcacheAsMap- the value for thecacheAsMaprecord 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. -
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). -
cache
public io.micronaut.cache.Cache<?> cache()Returns the value of thecacherecord component.- Returns:
- the value of the
cacherecord component
-
cacheInfo
public io.micronaut.cache.CacheInfo cacheInfo()Returns the value of thecacheInforecord component.- Returns:
- the value of the
cacheInforecord component
-
cacheAsMap
Returns the value of thecacheAsMaprecord component.- Returns:
- the value of the
cacheAsMaprecord component
-