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 -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringname()Returns the value of thenamerecord component.@NotNull Sticker[]stickers()Returns the value of thestickersrecord component.@NotNull StringReturns the value of thestickerTyperecord component.@Nullable PhotoSizeReturns the value of thethumbnailrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aStickerSetrecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentstickerType- the value for thestickerTyperecord componentstickers- the value for thestickersrecord componentthumbnail- the value for thethumbnailrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
stickerType
Returns the value of thestickerTyperecord component.- Returns:
- the value of the
stickerTyperecord component
-
stickers
Returns the value of thestickersrecord component.- Returns:
- the value of the
stickersrecord component
-
thumbnail
Returns the value of thethumbnailrecord component.- Returns:
- the value of the
thumbnailrecord component
-