Record Class ProtectionHooksSectionSpigot.Result
java.lang.Object
java.lang.Record
nl.pim16aap2.animatedarchitecture.spigot.core.config.ProtectionHooksSectionSpigot.Result
- Record Components:
enabledHooks- Set of enabled protection hooks.
- All Implemented Interfaces:
IConfigSectionResult
- Enclosing class:
ProtectionHooksSectionSpigot
public static record ProtectionHooksSectionSpigot.Result(Set<IProtectionHookSpigotSpecification> enabledHooks)
extends Record
implements IConfigSectionResult
Represents the result of the ProtectionHooksSectionSpigot configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProtectionHooksSectionSpigot.ResultThe default result used when no data is available. -
Constructor Summary
ConstructorsConstructorDescriptionResult(Set<IProtectionHookSpigotSpecification> enabledHooks) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theenabledHooksrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisProtectionHookEnabled(@Nullable IProtectionHookSpigotSpecification spec) 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
Creates an instance of aResultrecord class.- Parameters:
enabledHooks- the value for theenabledHooksrecord component
-
-
Method Details
-
isProtectionHookEnabled
-
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). -
enabledHooks
Returns the value of theenabledHooksrecord component.- Returns:
- the value of the
enabledHooksrecord component
-