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

      public static final Configurations BLACKLIST
      The words blacklist configuration.
    • ADDRESS

      public static final Configurations ADDRESS
      The address whitelist configuration.
    • MESSAGES

      public static final Configurations MESSAGES
      The messages configuration.
    • CHECKS_SETTINGS

      public static final Configurations CHECKS_SETTINGS
      The checks settings configuration.
    • DATABASE_SETTINGS

      public static final Configurations DATABASE_SETTINGS
      The settings for SQL databases connections.
  • Method Details

    • values

      public static Configurations[] 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

      public static Configurations valueOf​(java.lang.String name)
      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 name
      java.lang.NullPointerException - if the argument is null
    • getTomlSectionClass

      public java.lang.Class<? extends studio.thevipershow.vtc.TomlSectionConfiguration<SafeChat,​?>> getTomlSectionClass()
      Specified by:
      getTomlSectionClass in interface studio.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 interface studio.thevipershow.vtc.ConfigurationData<SafeChat>
    • getConfigurationName

      public java.lang.String getConfigurationName()
      Specified by:
      getConfigurationName in interface studio.thevipershow.vtc.ConfigurationData<SafeChat>