java.lang.Object
java.lang.Record
st.orm.template.impl.Elements.ObjectExpression
- All Implemented Interfaces:
Elements.Expression
- Enclosing class:
Elements
public static record Elements.ObjectExpression(@Nullable Metamodel<?,?> metamodel, @Nonnull Operator operator, @Nonnull Object object)
extends Record
implements Elements.Expression
-
Constructor Summary
ConstructorsConstructorDescriptionObjectExpression(Object object) ObjectExpression(Metamodel<?, ?> metamodel, Operator operator, Object object) Creates an instance of aObjectExpressionrecord class.ObjectExpression(Operator operator, Object object) -
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.Metamodel<?, ?> Returns the value of themetamodelrecord component.object()Returns the value of theobjectrecord component.operator()Returns the value of theoperatorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ObjectExpression
-
ObjectExpression
-
ObjectExpression
public ObjectExpression(@Nullable Metamodel<?, ?> metamodel, @Nonnull Operator operator, @Nonnull Object object) Creates an instance of aObjectExpressionrecord class.- Parameters:
metamodel- the value for themetamodelrecord componentoperator- the value for theoperatorrecord componentobject- the value for theobjectrecord component
-
-
Method Details
-
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). -
metamodel
Returns the value of themetamodelrecord component.- Returns:
- the value of the
metamodelrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
object
Returns the value of theobjectrecord component.- Returns:
- the value of the
objectrecord component
-