Package com.j3d.engine.scene.copy
Record Class Copy
java.lang.Object
java.lang.Record
com.j3d.engine.scene.copy.Copy
- Record Components:
original- TheUUIDof the originalGObjectfrom which this copy was made.copy- TheGObjectinstance that is the actual copy.
Represents a copy of a
GObject, linking it back to its original.
The equality and hash code stuff are based solely on the original UUID,
meaning two Copy instances are considered equal if they refer to the same original object,
regardless of the actual GObject instance they hold as a copy.
- Author:
- Lehlogonolo Poole
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Returns the value of thecopyrecord component.booleanCompares thisCopyobject with the specified object for equality.inthashCode()Returns a hash code value for thisCopyobject.booleanChecks if thisCopyinstance refers to a specific originalGObjectby comparing itsoriginalUUID with the given ID.original()Returns the value of theoriginalrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
is
Checks if thisCopyinstance refers to a specific originalGObjectby comparing itsoriginalUUID with the given ID. -
equals
Compares thisCopyobject with the specified object for equality. -
hashCode
public int hashCode()Returns a hash code value for thisCopyobject. -
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. -
original
Returns the value of theoriginalrecord component.- Returns:
- the value of the
originalrecord component
-
copy
Returns the value of thecopyrecord component.- Returns:
- the value of the
copyrecord component
-