Class KotlinDefaultMask
java.lang.Object
org.springframework.data.mapping.model.KotlinDefaultMask
Value object representing defaulting masks used for Kotlin methods applying parameter defaulting.
- Since:
- 2.1
- Author:
- Mark Paluch
- 
Method SummaryModifier and TypeMethodDescriptionvoidforEach(IntConsumer maskCallback) Callback method to notifyIntConsumerfor each defaulting mask.static KotlinDefaultMaskCreates defaulting mask(s) used to invoke Kotlin default methods that conditionally apply parameter values.int[]static intgetMaskCount(int arguments) Return the number of defaulting masks required to represent the number ofarguments.
- 
Method Details- 
forEachCallback method to notifyIntConsumerfor each defaulting mask.- Parameters:
- maskCallback- must not be null.
 
- 
getMaskCountpublic static int getMaskCount(int arguments) Return the number of defaulting masks required to represent the number ofarguments.- Parameters:
- arguments- number of method arguments.
- Returns:
- the number of defaulting masks required. Returns at least one to be used with copymethods.
 
- 
frompublic static KotlinDefaultMask from(kotlin.reflect.KFunction<?> function, Predicate<kotlin.reflect.KParameter> isPresent) Creates defaulting mask(s) used to invoke Kotlin default methods that conditionally apply parameter values.- Parameters:
- function- the- KFunctionthat should be invoked.
- isPresent-- Predicatefor the presence/absence of parameters.
- Returns:
- KotlinDefaultMask.
 
- 
getDefaultingpublic int[] getDefaulting()
 
-