Record Class AnnotationConfig
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.annotation.AnnotationConfig
public record AnnotationConfig(boolean enabled, int maxAnnotationsPerWorld, boolean saveOnShutdown)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationConfig(boolean enabled, int maxAnnotationsPerWorld, boolean saveOnShutdown) Creates an instance of aAnnotationConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AnnotationConfigstatic AnnotationConfigdisabled()booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxAnnotationsPerWorldrecord component.booleanReturns the value of thesaveOnShutdownrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnnotationConfig
public AnnotationConfig(boolean enabled, int maxAnnotationsPerWorld, boolean saveOnShutdown) Creates an instance of aAnnotationConfigrecord class.- Parameters:
enabled- the value for theenabledrecord componentmaxAnnotationsPerWorld- the value for themaxAnnotationsPerWorldrecord componentsaveOnShutdown- the value for thesaveOnShutdownrecord component
-
-
Method Details
-
defaultConfig
-
disabled
-
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. -
enabled
public boolean enabled()Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
maxAnnotationsPerWorld
public int maxAnnotationsPerWorld()Returns the value of themaxAnnotationsPerWorldrecord component.- Returns:
- the value of the
maxAnnotationsPerWorldrecord component
-
saveOnShutdown
public boolean saveOnShutdown()Returns the value of thesaveOnShutdownrecord component.- Returns:
- the value of the
saveOnShutdownrecord component
-