Record Class CloseableArgumentKeeping.Holder
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase5.CloseableArgumentKeeping.Holder
- Enclosing class:
CloseableArgumentKeeping
A variable of one callable's body - one of its parameters, or a local that may refer to the same object -
compared by identity.
-
Constructor Summary
ConstructorsConstructorDescriptionHolder(ScopedSymbol callable, ISymbol symbol) Creates an instance of aHolderrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncallable()Returns the value of thecallablerecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.(package private) static CloseableArgumentKeeping.Holderof(ScopedSymbol callable, ISymbol symbol) symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Holder
Holder(ScopedSymbol callable, ISymbol symbol) Creates an instance of aHolderrecord class.- Parameters:
callable- the value for thecallablerecord componentsymbol- the value for thesymbolrecord component
-
-
Method Details
-
of
-
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). -
hashCode
-
toString
-
callable
Returns the value of thecallablerecord component.- Returns:
- the value of the
callablerecord component
-
symbol
Returns the value of thesymbolrecord component.- Returns:
- the value of the
symbolrecord component
-