Package de.calamanari.adl.sql.cnv
Record Class CoreExpressionSqlHelper.MinimalProcessContext
java.lang.Object
java.lang.Record
de.calamanari.adl.sql.cnv.CoreExpressionSqlHelper.MinimalProcessContext
- All Implemented Interfaces:
de.calamanari.adl.ProcessContext
- Enclosing class:
CoreExpressionSqlHelper
protected static record CoreExpressionSqlHelper.MinimalProcessContext(Map<String,Serializable> globalVariables, Set<de.calamanari.adl.Flag> globalFlags)
extends Record
implements de.calamanari.adl.ProcessContext
This avoids that the helper holds a reference to the context while the context knows the helper.
- Author:
- Karl Eilebrecht
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMinimalProcessContext(Map<String, Serializable> globalVariables, Set<de.calamanari.adl.Flag> globalFlags) Creates an instance of aMinimalProcessContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Set<de.calamanari.adl.Flag> Set<de.calamanari.adl.Flag> Returns the value of theglobalFlagsrecord component.Returns the value of theglobalVariablesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MinimalProcessContext
protected MinimalProcessContext(Map<String, Serializable> globalVariables, Set<de.calamanari.adl.Flag> globalFlags) Creates an instance of aMinimalProcessContextrecord class.- Parameters:
globalVariables- the value for theglobalVariablesrecord componentglobalFlags- the value for theglobalFlagsrecord component
-
-
Method Details
-
getGlobalVariables
- Specified by:
getGlobalVariablesin interfacede.calamanari.adl.ProcessContext
-
getGlobalFlags
- Specified by:
getGlobalFlagsin interfacede.calamanari.adl.ProcessContext
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
globalVariables
Returns the value of theglobalVariablesrecord component.- Returns:
- the value of the
globalVariablesrecord component
-
globalFlags
Returns the value of theglobalFlagsrecord component.- Returns:
- the value of the
globalFlagsrecord component
-