Record Class BuildVersionCommand.BuildToolVersion
java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.macho.commands.BuildVersionCommand.BuildToolVersion
- All Implemented Interfaces:
StructConverter
- Enclosing class:
BuildVersionCommand
public static record BuildVersionCommand.BuildToolVersion(int tool, int version)
extends Record
implements StructConverter
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBuildToolVersion(int tool, int version) Creates an instance of aBuildToolVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns a structure datatype representing the contents of the implementor of this interface.inttool()Returns the value of thetoolrecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Constructor Details
-
BuildToolVersion
public BuildToolVersion(int tool, int version) Creates an instance of aBuildToolVersionrecord class.- Parameters:
tool- the value for thetoolrecord componentversion- the value for theversionrecord component
-
-
Method Details
-
toDataType
Description copied from interface:StructConverterReturns a structure datatype representing the contents of the implementor of this interface.For example, given:
class A { int foo; double bar; }The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.
- Specified by:
toDataTypein interfaceStructConverter- Returns:
- returns a structure datatype representing the implementor of this interface
- Throws:
DuplicateNameException- when a datatype of the same name already existsIOException- if an IO-related error occurs- See Also:
-
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. -
tool
public int tool()Returns the value of thetoolrecord component.- Returns:
- the value of the
toolrecord component
-
version
public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-