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
-
original
-
copy
-
-
Constructor Details
-
Copy
-
-
Method Details
-
is
-
equals
-
hashCode
-
toString
-
original
-
copy
-