Record Class ObjectSharing.Use
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.ObjectSharing.Use
- Record Components:
kind- what it does- forObjectSharing.Kind.SHARED, the symbol that now refers to the same object; otherwise null
- Enclosing class:
ObjectSharing
One occurrence's effect.
-
Constructor Summary
ConstructorsConstructorDescriptionUse(ObjectSharing.Kind kind, ISymbol sharedWith) Creates an instance of aUserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.Returns the value of thesharedWithrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Use
Creates an instance of aUserecord class.- Parameters:
kind- the value for thekindrecord componentsharedWith- the value for thesharedWithrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
kind
-