Enum Configurations
java.lang.Object
java.lang.Enum<Configurations>
studio.thevipershow.safechat.config.Configurations
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Configurations>
,java.lang.constant.Constable
,studio.thevipershow.vtc.ConfigurationData<SafeChat>
public enum Configurations extends java.lang.Enum<Configurations> implements studio.thevipershow.vtc.ConfigurationData<SafeChat>
The available configurations enum.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESS
The address whitelist configuration.BLACKLIST
The words blacklist configuration.CHECKS_SETTINGS
The checks settings configuration.DATABASE_SETTINGS
The settings for SQL databases connections.MESSAGES
The messages configuration. -
Method Summary
Modifier and Type Method Description java.lang.String
getConfigurationName()
<T extends java.lang.Enum<T> & studio.thevipershow.vtc.SectionType>
java.lang.Class<? extends T>getSectionClass()
java.lang.Class<? extends studio.thevipershow.vtc.TomlSectionConfiguration<SafeChat,?>>
getTomlSectionClass()
static Configurations
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Configurations[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
BLACKLIST
The words blacklist configuration. -
ADDRESS
The address whitelist configuration. -
MESSAGES
The messages configuration. -
CHECKS_SETTINGS
The checks settings configuration. -
DATABASE_SETTINGS
The settings for SQL databases connections.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getTomlSectionClass
public java.lang.Class<? extends studio.thevipershow.vtc.TomlSectionConfiguration<SafeChat,?>> getTomlSectionClass()- Specified by:
getTomlSectionClass
in interfacestudio.thevipershow.vtc.ConfigurationData<SafeChat>
-
getSectionClass
public <T extends java.lang.Enum<T> & studio.thevipershow.vtc.SectionType> java.lang.Class<? extends T> getSectionClass()- Specified by:
getSectionClass
in interfacestudio.thevipershow.vtc.ConfigurationData<SafeChat>
-
getConfigurationName
public java.lang.String getConfigurationName()- Specified by:
getConfigurationName
in interfacestudio.thevipershow.vtc.ConfigurationData<SafeChat>
-