Module watamebot

Class ConfigField<E>

java.lang.Object
net.foxgenesis.config.fields.ConfigField<E>
Direct Known Subclasses:
ArrayField, BooleanField, ChannelField, JSONField, LongField, RoleField, StringField

@Deprecated(forRemoval=true) public abstract class ConfigField<E> extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final String
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ConfigField(String name, Function<net.dv8tion.jda.api.entities.Guild,E> defaultValue, boolean isEditable)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    from(net.dv8tion.jda.api.entities.Guild guild)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected JSONObjectAdv
    getDataForGuild(net.dv8tion.jda.api.entities.Guild guild)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected E
    getDefaultValue(net.dv8tion.jda.api.entities.Guild guild)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    final boolean
    isPresent(net.dv8tion.jda.api.entities.Guild guild)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    optFrom(net.dv8tion.jda.api.entities.Guild guild)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    remove(net.dv8tion.jda.api.entities.Guild guild)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    set(net.dv8tion.jda.api.entities.Guild g, E newState)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • name

      @Nonnull public final String name
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isEditable

      public final boolean isEditable
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ConfigField

      public ConfigField(@Nonnull String name, @Nonnull Function<net.dv8tion.jda.api.entities.Guild,E> defaultValue, boolean isEditable)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • isPresent

      public final boolean isPresent(@Nonnull net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • from

      public E from(@Nonnull net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • optFrom

      public E optFrom(@Nonnull net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • set

      public void set(@Nonnull net.dv8tion.jda.api.entities.Guild g, E newState)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • remove

      public void remove(@Nonnull net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isPresent

      protected boolean isPresent(@Nonnull JSONObjectAdv config)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDefaultValue

      protected E getDefaultValue(@Nonnull net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getDataForGuild

      protected JSONObjectAdv getDataForGuild(@Nonnull net.dv8tion.jda.api.entities.Guild guild)
      Deprecated, for removal: This API element is subject to removal in a future version.