Record Class StarTransaction
java.lang.Object
java.lang.Record
org.teleight.teleightbots.api.objects.StarTransaction
- All Implemented Interfaces:
Serializable,ApiResult
public record StarTransaction(@NotNull String id, int amount, @org.jetbrains.annotations.Range(from=0L, to=999999999L) int nanostarAmount, @NotNull Date date, @Nullable TransactionPartner source, @Nullable TransactionPartner receiver)
extends Record
implements ApiResult
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStarTransaction(@NotNull String id, int amount, @org.jetbrains.annotations.Range(from=0L, to=999999999L) int nanostarAmount, @NotNull Date date, @Nullable TransactionPartner source, @Nullable TransactionPartner receiver) Creates an instance of aStarTransactionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the value of theamountrecord component.@NotNull Datedate()Returns the value of thedaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringid()Returns the value of theidrecord component.@org.jetbrains.annotations.Range(from=0L, to=999999999L) intReturns the value of thenanostarAmountrecord component.@Nullable TransactionPartnerreceiver()Returns the value of thereceiverrecord component.@Nullable TransactionPartnersource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StarTransaction
public StarTransaction(@NotNull @NotNull String id, int amount, @org.jetbrains.annotations.Range(from=0L, to=999999999L) int nanostarAmount, @NotNull @NotNull Date date, @Nullable @Nullable TransactionPartner source, @Nullable @Nullable TransactionPartner receiver) Creates an instance of aStarTransactionrecord class.- Parameters:
id- the value for theidrecord componentamount- the value for theamountrecord componentnanostarAmount- the value for thenanostarAmountrecord componentdate- the value for thedaterecord componentsource- the value for thesourcerecord componentreceiver- the value for thereceiverrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
amount
public int amount()Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
nanostarAmount
public @org.jetbrains.annotations.Range(from=0L, to=999999999L) int nanostarAmount()Returns the value of thenanostarAmountrecord component.- Returns:
- the value of the
nanostarAmountrecord component
-
date
Returns the value of thedaterecord component.- Returns:
- the value of the
daterecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
receiver
Returns the value of thereceiverrecord component.- Returns:
- the value of the
receiverrecord component
-