Record Class InputPollOption
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.InputPollOption
- All Implemented Interfaces:
Serializable,ApiResult
public record InputPollOption(@NotNull String text, @Nullable ParseMode textParseMode, @Nullable MessageEntity[] textEntities)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInputPollOption(@NotNull String text, @Nullable ParseMode textParseMode, @Nullable MessageEntity[] textEntities) Creates an instance of aInputPollOptionrecord class. -
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.static @NotNull lombok.Builder@NotNull Stringtext()Returns the value of thetextrecord component.@Nullable MessageEntity[]Returns the value of thetextEntitiesrecord component.@Nullable ParseModeReturns the value of thetextParseModerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InputPollOption
public InputPollOption(@NotNull @NotNull String text, @Nullable @Nullable ParseMode textParseMode, @Nullable @Nullable MessageEntity[] textEntities) Creates an instance of aInputPollOptionrecord class.- Parameters:
text- the value for thetextrecord componenttextParseMode- the value for thetextParseModerecord componenttextEntities- the value for thetextEntitiesrecord component
-
-
Method Details
-
ofBuilder
-
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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
textParseMode
Returns the value of thetextParseModerecord component.- Returns:
- the value of the
textParseModerecord component
-
textEntities
Returns the value of thetextEntitiesrecord component.- Returns:
- the value of the
textEntitiesrecord component
-