Record Class StructLayout.Field
java.lang.Object
java.lang.Record
dev.engine.core.layout.StructLayout.Field
- Enclosing class:
StructLayout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thealignmentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.intoffset()Returns the value of theoffsetrecord component.intsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.Class<?> type()Returns the value of thetyperecord component.
-
Constructor Details
-
Field
Creates an instance of aFieldrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentoffset- the value for theoffsetrecord componentsize- the value for thesizerecord componentalignment- the value for thealignmentrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
alignment
public int alignment()Returns the value of thealignmentrecord component.- Returns:
- the value of the
alignmentrecord component
-