Record Class ParameterBinding.MethodInvocationArgument
java.lang.Object
java.lang.Record
org.springframework.data.jdbc.repository.query.ParameterBinding.MethodInvocationArgument
- Record Components:
identifier-
- All Implemented Interfaces:
ParameterBinding.ParameterOrigin
- Enclosing class:
ParameterBinding
public static record ParameterBinding.MethodInvocationArgument(ParameterBinding.BindingIdentifier identifier)
extends Record
implements ParameterBinding.ParameterOrigin
Value object capturing the method invocation parameter reference.
- Since:
- 4.0
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aMethodInvocationArgumentrecord 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.Returns the value of theidentifierrecord component.booleanbooleanbooleanfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodInvocationArgument
Creates an instance of aMethodInvocationArgumentrecord class.- Parameters:
identifier- the value for theidentifierrecord component
-
-
Method Details
-
isMethodArgument
public boolean isMethodArgument()- Specified by:
isMethodArgumentin interfaceParameterBinding.ParameterOrigin- Returns:
trueif the origin is a method argument reference.
-
isExpression
public boolean isExpression()- Specified by:
isExpressionin interfaceParameterBinding.ParameterOrigin- Returns:
trueif the origin is an expression.
-
isSynthetic
public boolean isSynthetic()- Specified by:
isSyntheticin interfaceParameterBinding.ParameterOrigin- Returns:
trueif the origin is synthetic (contributed by e.g. KeysetPagination)
-
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). -
identifier
Returns the value of theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-