Record Class ApiCompatibilityManager.Argument
java.lang.Object
java.lang.Record
com.broadleafcommerce.common.extension.reflection.ApiCompatibilityManager.Argument
- Record Components:
qualified- Indicates whether the argument should be considered as qualified. If true, qualification checks or processing may be performed.arg- The actual value of the argument to be passed.
- Enclosing class:
- ApiCompatibilityManager
public static record ApiCompatibilityManager.Argument(boolean qualified, Supplier<Object> arg)
extends Record
Represents an argument that can be passed to methods or constructors, with an optional
qualifier to determine if it should undergo qualification checks or processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarg()Returns the value of theargrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thequalifiedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
qualified
public boolean qualified()Returns the value of thequalifiedrecord component.- Returns:
- the value of the
qualifiedrecord component
-
arg
Returns the value of theargrecord component.- Returns:
- the value of the
argrecord component
-