Module watamebot

Class GuildPropertyMapping

java.lang.Object
net.foxgenesis.watame.property.GuildPropertyMapping
All Implemented Interfaces:
IPropertyMapping, IGuildPropertyMapping

public class GuildPropertyMapping extends Object implements IGuildPropertyMapping
  • Constructor Details

    • GuildPropertyMapping

      public GuildPropertyMapping(String key, T data, net.dv8tion.jda.api.entities.Guild guild)
  • Method Details

    • getAsString

      public String getAsString()
      Description copied from interface: IPropertyMapping
      Return this property as a string.
      Specified by:
      getAsString in interface IPropertyMapping
      Returns:
      The property's string value
    • getAsLong

      public long getAsLong()
      Description copied from interface: IPropertyMapping
      Return this property as a long.
      Specified by:
      getAsLong in interface IPropertyMapping
      Returns:
      The property's long value
    • getAsDouble

      public double getAsDouble()
      Description copied from interface: IPropertyMapping
      Return this property as a double.
      Specified by:
      getAsDouble in interface IPropertyMapping
      Returns:
      The property's double value
    • getAsFloat

      public float getAsFloat()
      Description copied from interface: IPropertyMapping
      Return this property as a float.
      Specified by:
      getAsFloat in interface IPropertyMapping
      Returns:
      The property's float value
    • getAsInt

      public int getAsInt()
      Description copied from interface: IPropertyMapping
      Return this property as an integer.
      Specified by:
      getAsInt in interface IPropertyMapping
      Returns:
      The property's integer value
    • getAsBoolean

      public boolean getAsBoolean()
      Description copied from interface: IPropertyMapping
      Return this property as a boolean.
      Specified by:
      getAsBoolean in interface IPropertyMapping
      Returns:
      The property's boolean value
    • getAsCategory

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.concrete.Category getAsCategory()
      Specified by:
      getAsCategory in interface IGuildPropertyMapping
    • getAsChannel

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.Channel getAsChannel()
      Specified by:
      getAsChannel in interface IGuildPropertyMapping
    • getAsTextChannel

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.concrete.TextChannel getAsTextChannel()
      Specified by:
      getAsTextChannel in interface IGuildPropertyMapping
    • getAsVoiceChannel

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel getAsVoiceChannel()
      Specified by:
      getAsVoiceChannel in interface IGuildPropertyMapping
    • getAsStageChannel

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.concrete.StageChannel getAsStageChannel()
      Specified by:
      getAsStageChannel in interface IGuildPropertyMapping
    • getAsNewsChannel

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.concrete.NewsChannel getAsNewsChannel()
      Specified by:
      getAsNewsChannel in interface IGuildPropertyMapping
    • getAsMessageChannel

      @Nullable public @Nullable net.dv8tion.jda.api.entities.channel.middleman.GuildMessageChannel getAsMessageChannel()
      Specified by:
      getAsMessageChannel in interface IGuildPropertyMapping
    • getAsRole

      @Nullable public @Nullable net.dv8tion.jda.api.entities.Role getAsRole()
      Specified by:
      getAsRole in interface IGuildPropertyMapping
    • getAsMember

      @Nullable public @Nullable net.dv8tion.jda.api.entities.Member getAsMember()
      Specified by:
      getAsMember in interface IGuildPropertyMapping
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object