Record Class HyperDirection
java.lang.Object
java.lang.Record
ghidra.util.database.spatial.hyper.HyperDirection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHyperDirection(int dimension, boolean forward) Creates an instance of aHyperDirectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanforward()Returns the value of theforwardrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
HyperDirection
public HyperDirection(int dimension, boolean forward) Creates an instance of aHyperDirectionrecord class.- Parameters:
dimension- the value for thedimensionrecord componentforward- the value for theforwardrecord 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. All components in this record class are compared with '=='. -
dimension
public int dimension()Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
forward
public boolean forward()Returns the value of theforwardrecord component.- Returns:
- the value of the
forwardrecord component
-