Package org.applecommander.os.pascal
Record Class Segment
java.lang.Object
java.lang.Record
org.applecommander.os.pascal.Segment
public record Segment(String name, String textInterface, DataBuffer data, Segment.Kind kind, int textAddr, int segNum, Segment.MachineType machineType, int version, Object[] dictionary)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSegment(String name, String textInterface, DataBuffer data, Segment.Kind kind, int textAddr, int segNum, Segment.MachineType machineType, int version, Object[] dictionary) Creates an instance of aSegmentrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.Object[]Returns the value of thedictionaryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.static Segmentload(String name, int kind, int segInfo, DataBuffer data, DataBuffer textAddrBuf) Returns the value of themachineTyperecord component.name()Returns the value of thenamerecord component.intsegNum()Returns the value of thesegNumrecord component.inttextAddr()Returns the value of thetextAddrrecord component.Returns the value of thetextInterfacerecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
Segment
public Segment(String name, String textInterface, DataBuffer data, Segment.Kind kind, int textAddr, int segNum, Segment.MachineType machineType, int version, Object[] dictionary) Creates an instance of aSegmentrecord class.- Parameters:
name- the value for thenamerecord componenttextInterface- the value for thetextInterfacerecord componentdata- the value for thedatarecord componentkind- the value for thekindrecord componenttextAddr- the value for thetextAddrrecord componentsegNum- the value for thesegNumrecord componentmachineType- the value for themachineTyperecord componentversion- the value for theversionrecord componentdictionary- the value for thedictionaryrecord component
-
-
Method Details
-
load
public static Segment load(String name, int kind, int segInfo, DataBuffer data, DataBuffer textAddrBuf) -
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
textInterface
Returns the value of thetextInterfacerecord component.- Returns:
- the value of the
textInterfacerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
textAddr
public int textAddr()Returns the value of thetextAddrrecord component.- Returns:
- the value of the
textAddrrecord component
-
segNum
public int segNum()Returns the value of thesegNumrecord component.- Returns:
- the value of the
segNumrecord component
-
machineType
Returns the value of themachineTyperecord component.- Returns:
- the value of the
machineTyperecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
dictionary
Returns the value of thedictionaryrecord component.- Returns:
- the value of the
dictionaryrecord component
-