Class PartialRoleImpl

java.lang.Object
com.mewna.catnip.entity.impl.guild.PartialRoleImpl
All Implemented Interfaces:
Entity, PartialRole, GuildEntity, HasGuild, Snowflake, Timestamped, RequiresCatnip

public class PartialRoleImpl extends Object implements PartialRole, RequiresCatnip
Since:
10/4/18.
Author:
amy
  • Constructor Details

    • PartialRoleImpl

      public PartialRoleImpl()
    • PartialRoleImpl

      public PartialRoleImpl(Catnip catnip, long idAsLong, long guildIdAsLong)
  • Method Details

    • catnip

      public void catnip(@Nonnull Catnip catnip)
      Specified by:
      catnip in interface RequiresCatnip
    • hashCode

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

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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static PartialRoleImpl.PartialRoleImplBuilder builder()
    • catnip

      public Catnip catnip()
      Description copied from interface: Entity
      Returns the catnip instance associated with this entity.
      Specified by:
      catnip in interface Entity
      Returns:
      The catnip instance of this entity.
    • idAsLong

      public long idAsLong()
      Description copied from interface: Snowflake
      The ID of this snowflake, as a long.
      Specified by:
      idAsLong in interface Snowflake
      Returns:
      Long representing the ID.
    • guildIdAsLong

      public long guildIdAsLong()
      Description copied from interface: HasGuild
      The id of the guild this entity is from.
      Specified by:
      guildIdAsLong in interface HasGuild
      Returns:
      Long representing the guild ID.
    • idAsLong

      public PartialRoleImpl idAsLong(long idAsLong)
      Returns:
      this.
    • guildIdAsLong

      public PartialRoleImpl guildIdAsLong(long guildIdAsLong)
      Returns:
      this.