Record Class StickerSet

java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.StickerSet
All Implemented Interfaces:
Serializable, ApiResult

public record StickerSet(@NotNull String name, @NotNull String title, @NotNull String stickerType, @NotNull Sticker[] stickers, @Nullable PhotoSize thumbnail) extends Record implements ApiResult
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    StickerSet(@NotNull String name, @NotNull String title, @NotNull String stickerType, @NotNull Sticker[] stickers, @Nullable PhotoSize thumbnail)
    Creates an instance of a StickerSet record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    @NotNull String
    Returns the value of the name record component.
    @NotNull Sticker[]
    Returns the value of the stickers record component.
    @NotNull String
    Returns the value of the stickerType record component.
    @Nullable PhotoSize
    Returns the value of the thumbnail record component.
    @NotNull String
    Returns the value of the title record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • StickerSet

      public StickerSet(@NotNull @NotNull String name, @NotNull @NotNull String title, @NotNull @NotNull String stickerType, @NotNull @NotNull Sticker[] stickers, @Nullable @Nullable PhotoSize thumbnail)
      Creates an instance of a StickerSet record class.
      Parameters:
      name - the value for the name record component
      title - the value for the title record component
      stickerType - the value for the stickerType record component
      stickers - the value for the stickers record component
      thumbnail - the value for the thumbnail record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • title

      @NotNull public @NotNull String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • stickerType

      @NotNull public @NotNull String stickerType()
      Returns the value of the stickerType record component.
      Returns:
      the value of the stickerType record component
    • stickers

      @NotNull public @NotNull Sticker[] stickers()
      Returns the value of the stickers record component.
      Returns:
      the value of the stickers record component
    • thumbnail

      @Nullable public @Nullable PhotoSize thumbnail()
      Returns the value of the thumbnail record component.
      Returns:
      the value of the thumbnail record component