Record Class Config.Cache
java.lang.Object
java.lang.Record
net.flectone.pulse.config.Config.Cache
- Enclosing class:
Config
- Since:
- 1.7.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionCache(Map<CacheName, Config.Cache.CacheSetting> types) Creates an instance of aCacherecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.Cache.CacheBuilderbuilder()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.types()Returns the value of thetypesrecord component.withTypes(Map<CacheName, Config.Cache.CacheSetting> types)
-
Constructor Details
-
Cache
Creates an instance of aCacherecord class.- Parameters:
types- the value for thetypesrecord component
-
-
Method Details
-
builder
-
toBuilder
-
withTypes
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
toString
-
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). -
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-