java.lang.Object
java.lang.Record
org.jhotdraw8.geom.PathData
public record PathData(byte[] commands, int[] offsets, double[] coords, int windingRule)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPathData(byte[] commands, int[] offsets, double[] coords, int windingRule) Creates an instance of aPathDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]commands()Returns the value of thecommandsrecord component.double[]coords()Returns the value of thecoordsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.int[]offsets()Returns the value of theoffsetsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thewindingRulerecord component.
-
Constructor Details
-
PathData
public PathData(byte[] commands, int[] offsets, double[] coords, int windingRule) Creates an instance of aPathDatarecord class.- Parameters:
commands- the value for thecommandsrecord componentoffsets- the value for theoffsetsrecord componentcoords- the value for thecoordsrecord componentwindingRule- the value for thewindingRulerecord 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 '=='. -
commands
public byte[] commands()Returns the value of thecommandsrecord component.- Returns:
- the value of the
commandsrecord component
-
offsets
public int[] offsets()Returns the value of theoffsetsrecord component.- Returns:
- the value of the
offsetsrecord component
-
coords
public double[] coords()Returns the value of thecoordsrecord component.- Returns:
- the value of the
coordsrecord component
-
windingRule
public int windingRule()Returns the value of thewindingRulerecord component.- Returns:
- the value of the
windingRulerecord component
-