Record Class CodedIndex
java.lang.Object
java.lang.Record
net.codecrete.windowsapi.winmd.tables.CodedIndex
- Record Components:
table- table number (seeMetadataTables)index- row index
Structured coded index consisting of table and row index.
See ECMA-335, II.24.2.6 #~ stream
-
Constructor Summary
ConstructorsConstructorDescriptionCodedIndex(int table, int index) Creates an instance of aCodedIndexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CodedIndexdecode(int rawIndex, int[] tables) Creates a new instance by decoding the index value for a coded index for the given list of tables.static intencode(int table, int index, int[] tables) Encodes the table and index into an integer number for the given list of tables.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.booleanisNull()Indicates if the coded index represents a null value.inttable()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CodedIndex
-
-
Method Details
-
decode
Creates a new instance by decoding the index value for a coded index for the given list of tables.- Parameters:
rawIndex- the raw index valuetables- the tables participating in the coded index- Returns:
- a new instance
-
encode
public static int encode(int table, int index, int[] tables) Encodes the table and index into an integer number for the given list of tables.- Parameters:
table- table indexindex- row indextables- table indexes, in the order specified by the standard.- Returns:
- coded index (as a number)
-
isNull
public boolean isNull()Indicates if the coded index represents a null value.- Returns:
trueif the index is a null value,falseotherwise
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
table
-
index
-