ClassFinder

Types

Link copied to clipboard
object Static

Properties

Link copied to clipboard
open override val name: String

Functions

Link copied to clipboard

Concatenate with another finder.

fun contact(other: Array<Class<*>>): ClassFinder

Concatenate with another array.

Concatenate with another iterable.

Concatenate with another sequence.

Link copied to clipboard
fun filter(filter: Class<*>.() -> Boolean): ClassFinder

Filter with a predicate.

Link copied to clipboard
fun filterHasConstructorSignature(vararg paramTypes: Class<*>): ClassFinder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun filterHasFieldTypeAndCountIn(type: Class<*>, min: Int = 1, max: Int = Int.MAX_VALUE): ClassFinder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun filterHasMethodSignature(returnType: Class<*>, vararg paramTypes: Class<*>): ClassFinder
Link copied to clipboard
fun filterImplementInterfaces(vararg interfaces: Class<*>): ClassFinder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun filterIsSubclassOf(superclass: Class<*>): ClassFinder
Link copied to clipboard
Link copied to clipboard
fun filterPackage(packageName: String): ClassFinder
Link copied to clipboard
open fun first(): Class<*>

Get the first element or throw an exception if there is no such element.

open fun first(condition: Class<*>.() -> Boolean): Class<*>

Get the first element by condition or throw an exception if there is no such element.

Link copied to clipboard
open fun firstOrNull(): Class<*>?

Get the first element or null if not found.

open fun firstOrNull(condition: Class<*>.() -> Boolean): Class<*>?

Get the first element by condition or null if not found

Link copied to clipboard
fun forEach(action: (Class<*>) -> Unit)

For-each loop for.

Link copied to clipboard
fun forEachIndexed(action: (index: Int, Class<*>) -> Unit)

For-each loop with index for.

Link copied to clipboard
open fun last(): Class<*>

Get the last element or throw an exception if there is no such element.

open fun last(condition: Class<*>.() -> Boolean): Class<*>

Get the last element by condition or throw an exception if there is no such element.

Link copied to clipboard
open fun lastOrNull(): Class<*>?

Get the last element or null if not found.

open fun lastOrNull(condition: Class<*>.() -> Boolean): Class<*>?

Get the last element by condition or null if not found

Link copied to clipboard
fun <R, C : MutableCollection<in R>> mapToCollection(destination: C, transform: (Class<*>) -> R): C

Map to the collection.

Link copied to clipboard
fun <R> mapToHashSet(transform: (Class<*>) -> R): HashSet<R>

Map to the hashset.

Link copied to clipboard
fun <R> mapToList(transform: (Class<*>) -> R): List<R>

Map to the list.

Link copied to clipboard
fun <R> mapToMutableList(transform: (Class<*>) -> R): List<R>

Map to the mutable list.

Link copied to clipboard
fun <R> mapToMutableSet(transform: (Class<*>) -> R): MutableSet<R>

Map to the mutable set.

Link copied to clipboard
fun <R> mapToSet(transform: (Class<*>) -> R): Set<R>

Map to the set.

Link copied to clipboard
fun onEach(action: (Class<*>) -> Unit): ClassFinder

On-each loop for.

Link copied to clipboard
fun onEachIndexed(action: (index: Int, Class<*>) -> Unit): ClassFinder

On-each loop with index for.

Link copied to clipboard
operator fun plus(other: BaseFinder<Class<*>, ClassFinder>): ClassFinder
operator fun plus(other: Array<Class<*>>): ClassFinder
operator fun plus(other: Iterable<Class<*>>): ClassFinder
operator fun plus(other: Sequence<Class<*>>): ClassFinder
Link copied to clipboard
operator fun plusAssign(other: BaseFinder<Class<*>, ClassFinder>)
operator fun plusAssign(other: Array<Class<*>>)
operator fun plusAssign(other: Iterable<Class<*>>)
operator fun plusAssign(other: Sequence<Class<*>>)
Link copied to clipboard
fun requireCount(condition: Class<*>.() -> Boolean, count: Int): ClassFinder
fun requireCount(condition: Class<*>.() -> Boolean, range: IntRange): ClassFinder
Link copied to clipboard
fun requireCountOrNull(condition: Class<*>.() -> Boolean, count: Int): ClassFinder?
fun requireCountOrNull(condition: Class<*>.() -> Boolean, range: IntRange): ClassFinder?
Link copied to clipboard

Check sequence only has one element.

fun requireSingle(condition: Class<*>.() -> Boolean): ClassFinder
Link copied to clipboard

Check sequence only has one element or null if not found.

fun requireSingleOrNull(condition: Class<*>.() -> Boolean): ClassFinder?
Link copied to clipboard
open fun single(): Class<*>

Get the single element or throw an exception if there is no such element or more than one element.

open fun single(condition: Class<*>.() -> Boolean): Class<*>
Link copied to clipboard
open fun singleOrNull(): Class<*>?

Get the single element or null if not found.

open fun singleOrNull(condition: Class<*>.() -> Boolean): Class<*>?
Link copied to clipboard
fun <C : MutableCollection<Class<*>>> toCollection(collection: C): C

Make sequence to the collection.

Link copied to clipboard

Make sequence to the hashset.

Link copied to clipboard
fun toList(): List<Class<*>>

Make sequence to the list.

Link copied to clipboard

Make sequence to the mutable list.

Link copied to clipboard

Make sequence to the mutable set.

Link copied to clipboard
fun toSet(): Set<Class<*>>

Make sequence to the set.