Record Class ObjectSharing.Reach
java.lang.Object
java.lang.Record
org.ek9lang.compiler.support.ObjectSharing.Reach
- Record Components:
givenThis-this(orsuper) is the receiver - written, or implied by a bare call of a method - or an argumentnamed- the variables it is given: receiver and arguments, and what a list literal, a constructor call or a coalescing operator among the arguments holdssomeOtherObject- it is given an object nothing here can name: a call's result that may be an existing object, a delegate's code, a stream stage
- Enclosing class:
ObjectSharing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegivenThisrecord component.final inthashCode()Returns a hash code value for this object.named()Returns the value of thenamedrecord component.booleanReturns the value of thesomeOtherObjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Reach
Creates an instance of aReachrecord class.- Parameters:
givenThis- the value for thegivenThisrecord componentnamed- the value for thenamedrecord componentsomeOtherObject- the value for thesomeOtherObjectrecord 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. -
givenThis
-
named
-
someOtherObject
public boolean someOtherObject()Returns the value of thesomeOtherObjectrecord component.- Returns:
- the value of the
someOtherObjectrecord component
-