Record Class CachingSectionSpigot.Result
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.CachingSectionSpigot.Result
- Record Components:
powerblockCacheTimeout- The timeout for caching powerblocks (in minutes).headCacheTimeout- The timeout for player head caching (in minutes).
- All Implemented Interfaces:
IConfigSectionResult
- Enclosing class:
CachingSectionSpigot
public static record CachingSectionSpigot.Result(int powerblockCacheTimeout, int headCacheTimeout)
extends Record
implements IConfigSectionResult
Represents the result of the caching configuration section.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CachingSectionSpigot.ResultThe default result used when no data is available. -
Constructor Summary
ConstructorsConstructorDescriptionResult(int powerblockCacheTimeout, int headCacheTimeout) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theheadCacheTimeoutrecord component.intReturns the value of thepowerblockCacheTimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default result used when no data is available.
-
-
Constructor Details
-
Result
public Result(int powerblockCacheTimeout, int headCacheTimeout) Creates an instance of aResultrecord class.- Parameters:
powerblockCacheTimeout- the value for thepowerblockCacheTimeoutrecord componentheadCacheTimeout- the value for theheadCacheTimeoutrecord component
-
-
Method Details
-
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 with thecomparemethod from their corresponding wrapper classes. -
powerblockCacheTimeout
public int powerblockCacheTimeout()Returns the value of thepowerblockCacheTimeoutrecord component.- Returns:
- the value of the
powerblockCacheTimeoutrecord component
-
headCacheTimeout
public int headCacheTimeout()Returns the value of theheadCacheTimeoutrecord component.- Returns:
- the value of the
headCacheTimeoutrecord component
-