Record Class Seidel.SortedVertex
java.lang.Object
java.lang.Record
com.j3d.engine.scene.nodes.util.tri.Seidel.SortedVertex
- Enclosing class:
Seidel
private static record Seidel.SortedVertex(int originalIndex, CartesianPoint point, Seidel.Chain chain)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Seidel.ChainThe field for thechainrecord component.private final intThe field for theoriginalIndexrecord component.private final CartesianPointThe field for thepointrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSortedVertex(int originalIndex, CartesianPoint point, Seidel.Chain chain) Creates an instance of aSortedVertexrecord class. -
Method Summary
Modifier and TypeMethodDescriptionchain()Returns the value of thechainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theoriginalIndexrecord component.point()Returns the value of thepointrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
originalIndex
private final int originalIndexThe field for theoriginalIndexrecord component. -
point
The field for thepointrecord component. -
chain
The field for thechainrecord component.
-
-
Constructor Details
-
SortedVertex
Creates an instance of aSortedVertexrecord class.- Parameters:
originalIndex- the value for theoriginalIndexrecord componentpoint- the value for thepointrecord componentchain- the value for thechainrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
originalIndex
public int originalIndex()Returns the value of theoriginalIndexrecord component.- Returns:
- the value of the
originalIndexrecord component
-
point
Returns the value of thepointrecord component.- Returns:
- the value of the
pointrecord component
-
chain
Returns the value of thechainrecord component.- Returns:
- the value of the
chainrecord component
-