java.lang.Object
java.lang.Record
software.sava.rpc.json.http.response.EpochInfo
public record EpochInfo(long absoluteSlot, long blockHeight, long epoch, int slotIndex, int slotsInEpoch, long transactionCount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEpochInfo(long absoluteSlot, long blockHeight, long epoch, int slotIndex, int slotsInEpoch, long transactionCount) Creates an instance of aEpochInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theabsoluteSlotrecord component.longReturns the value of theblockHeightrecord component.longepoch()Returns the value of theepochrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static EpochInfoparse(systems.comodal.jsoniter.JsonIterator ji) intReturns the value of theslotIndexrecord component.intReturns the value of theslotsInEpochrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetransactionCountrecord component.
-
Constructor Details
-
EpochInfo
public EpochInfo(long absoluteSlot, long blockHeight, long epoch, int slotIndex, int slotsInEpoch, long transactionCount) Creates an instance of aEpochInforecord class.- Parameters:
absoluteSlot- the value for theabsoluteSlotrecord componentblockHeight- the value for theblockHeightrecord componentepoch- the value for theepochrecord componentslotIndex- the value for theslotIndexrecord componentslotsInEpoch- the value for theslotsInEpochrecord componenttransactionCount- the value for thetransactionCountrecord component
-
-
Method Details
-
parse
-
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 with '=='. -
absoluteSlot
public long absoluteSlot()Returns the value of theabsoluteSlotrecord component.- Returns:
- the value of the
absoluteSlotrecord component
-
blockHeight
public long blockHeight()Returns the value of theblockHeightrecord component.- Returns:
- the value of the
blockHeightrecord component
-
epoch
public long epoch()Returns the value of theepochrecord component.- Returns:
- the value of the
epochrecord component
-
slotIndex
public int slotIndex()Returns the value of theslotIndexrecord component.- Returns:
- the value of the
slotIndexrecord component
-
slotsInEpoch
public int slotsInEpoch()Returns the value of theslotsInEpochrecord component.- Returns:
- the value of the
slotsInEpochrecord component
-
transactionCount
public long transactionCount()Returns the value of thetransactionCountrecord component.- Returns:
- the value of the
transactionCountrecord component
-