Module software.sava.core
Record Class AccountIndexLookupTableView
java.lang.Object
java.lang.Record
software.sava.core.accounts.lookup.AccountIndexLookupTableView
- All Implemented Interfaces:
Comparable<PublicKey>,PublicKey
-
Field Summary
Fields inherited from interface software.sava.core.accounts.PublicKey
MAX_SEED_LENGTH, MAX_SEEDS, NONE, PUBLIC_KEY_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionAccountIndexLookupTableView(byte[] lookupTable, int offset, int index) Creates an instance of aAccountIndexLookupTableViewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintbyte[]booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.byte[]Returns the value of thelookupTablerecord component.intoffset()Returns the value of theoffsetrecord component.toBase58()toBase64()byte[]final StringtoString()Returns a string representation of this record class.intwrite(byte[] out, int off) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.sava.core.accounts.PublicKey
l, toJavaPublicKey, verifySignature, verifySignature, verifySignature, verifySignature
-
Constructor Details
-
AccountIndexLookupTableView
public AccountIndexLookupTableView(byte[] lookupTable, int offset, int index) Creates an instance of aAccountIndexLookupTableViewrecord class.- Parameters:
lookupTable- the value for thelookupTablerecord componentoffset- the value for theoffsetrecord componentindex- the value for theindexrecord component
-
-
Method Details
-
toByteArray
public byte[] toByteArray()- Specified by:
toByteArrayin interfacePublicKey
-
copyByteArray
public byte[] copyByteArray()- Specified by:
copyByteArrayin interfacePublicKey
-
compareTo
- Specified by:
compareToin interfaceComparable<PublicKey>
-
write
public int write(byte[] out, int off) -
toBase58
-
toBase64
-
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 '=='. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
lookupTable
public byte[] lookupTable()Returns the value of thelookupTablerecord component.- Returns:
- the value of the
lookupTablerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-