Class KotlinCodeGenerationStrategyList
-
- All Implemented Interfaces:
-
kotlin.collections.Collection
,kotlin.collections.Iterable
,kotlin.collections.List
@JvmInline() public final class KotlinCodeGenerationStrategyList implements List<KotlinCodeGenerationStrategy<?, ?, ?>>
Wraps list of KotlinCodeGenerationStrategy instances. Used to provide additional functionalities.
-
-
Constructor Summary
Constructors Constructor Description KotlinCodeGenerationStrategyList(KotlinCodeGenerationStrategy<?, ?, ?> strategy)
KotlinCodeGenerationStrategyList(List<KotlinCodeGenerationStrategy<?, ?, ?>> list)
-
Method Summary
Modifier and Type Method Description final <STRATEGY extends KotlinCodeGenerationStrategy<CONTEXT, INPUT, SPEC>, CONTEXT extends KotlinCodeGenerationContext<CONTEXT>, INPUT extends Any, SPEC extends Any> List<STRATEGY>
filter(KClass<STRATEGY>Â strategyType)
Filter the current list and return instances of given type. -
Methods inherited from class kotlin.collections.List
contains, containsAll, get, getSize, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, spliterator, subList
-
Methods inherited from class kotlin.collections.Iterable
forEach
-
Methods inherited from class kotlin.collections.Collection
parallelStream, stream, toArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
KotlinCodeGenerationStrategyList
KotlinCodeGenerationStrategyList(KotlinCodeGenerationStrategy<?, ?, ?> strategy)
-
KotlinCodeGenerationStrategyList
KotlinCodeGenerationStrategyList(List<KotlinCodeGenerationStrategy<?, ?, ?>> list)
-
-
Method Detail
-
filter
final <STRATEGY extends KotlinCodeGenerationStrategy<CONTEXT, INPUT, SPEC>, CONTEXT extends KotlinCodeGenerationContext<CONTEXT>, INPUT extends Any, SPEC extends Any> List<STRATEGY> filter(KClass<STRATEGY>Â strategyType)
Filter the current list and return instances of given type.
- Parameters:
strategyType
- defining which concrete implementations to use- Returns:
list containing only instances of given strategyType
-
-
-
-