Record Class NoteGnuProperty.NotePropertyElement
java.lang.Object
java.lang.Record
ghidra.app.util.bin.format.elf.info.NoteGnuProperty.NotePropertyElement
- Enclosing class:
NoteGnuProperty
public static record NoteGnuProperty.NotePropertyElement(int type, String typeName, String value, int length)
extends Record
Contains the information of an individual note property.
-
Constructor Summary
ConstructorDescriptionNotePropertyElement
(int type, String typeName, String value, int length) Creates an instance of aNotePropertyElement
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
length()
Returns the value of thelength
record component.final String
toString()
Returns a string representation of this record class.int
type()
Returns the value of thetype
record component.typeName()
Returns the value of thetypeName
record component.value()
Returns the value of thevalue
record component.
-
Constructor Details
-
NotePropertyElement
Creates an instance of aNotePropertyElement
record class.- Parameters:
type
- the value for thetype
record componenttypeName
- the value for thetypeName
record componentvalue
- the value for thevalue
record componentlength
- the value for thelength
record component
-
-
Method Details
-
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 '=='. -
type
public int type()Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
typeName
Returns the value of thetypeName
record component.- Returns:
- the value of the
typeName
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-
length
public int length()Returns the value of thelength
record component.- Returns:
- the value of the
length
record component
-