public class KotlinDefaultMask extends Object
Modifier and Type | Method and Description |
---|---|
void |
forEach(IntConsumer maskCallback)
Callback method to notify
IntConsumer for each defaulting mask. |
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.
|
int[] |
getDefaulting() |
static int |
getMaskCount(int arguments)
Return the number of defaulting masks required to represent the number of
arguments . |
public void forEach(IntConsumer maskCallback)
IntConsumer
for each defaulting mask.maskCallback
- must not be null.public static int getMaskCount(int arguments)
arguments
.arguments
- number of method arguments.public static KotlinDefaultMask from(kotlin.reflect.KFunction<?> function, Predicate<kotlin.reflect.KParameter> isPresent)
function
- the KFunction
that should be invoked.isPresent
- Predicate
for the presence/absence of parameters.KotlinDefaultMask
.public int[] getDefaulting()
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.