Package net.apartium.cocoabeans.commands
Record Class SimpleArgumentMapper.ResultMap
java.lang.Object
java.lang.Record
net.apartium.cocoabeans.commands.SimpleArgumentMapper.ResultMap
- Record Components:
mapOfArgumentsByType- map of arguments by typemapOfArgumentsByParameterName- map of arguments by parameter name
- Enclosing class:
SimpleArgumentMapper
@AvailableSince("0.0.37")
public static record SimpleArgumentMapper.ResultMap(Map<Class<?>,List<ArgumentIndex<?>>> mapOfArgumentsByType, Map<String,ArgumentIndex<?>> mapOfArgumentsByParameterName)
extends Record
Result of mapping arguments to index
-
Constructor Summary
ConstructorsConstructorDescriptionResultMap(Map<Class<?>, List<ArgumentIndex<?>>> mapOfArgumentsByType, Map<String, ArgumentIndex<?>> mapOfArgumentsByParameterName) Creates an instance of aResultMaprecord 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.Map<String, ArgumentIndex<?>> Returns the value of themapOfArgumentsByParameterNamerecord component.Map<Class<?>, List<ArgumentIndex<?>>> Returns the value of themapOfArgumentsByTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResultMap
public ResultMap(Map<Class<?>, List<ArgumentIndex<?>>> mapOfArgumentsByType, Map<String, ArgumentIndex<?>> mapOfArgumentsByParameterName) Creates an instance of aResultMaprecord class.- Parameters:
mapOfArgumentsByType- the value for themapOfArgumentsByTyperecord componentmapOfArgumentsByParameterName- the value for themapOfArgumentsByParameterNamerecord 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). -
mapOfArgumentsByType
Returns the value of themapOfArgumentsByTyperecord component.- Returns:
- the value of the
mapOfArgumentsByTyperecord component
-
mapOfArgumentsByParameterName
Returns the value of themapOfArgumentsByParameterNamerecord component.- Returns:
- the value of the
mapOfArgumentsByParameterNamerecord component
-