ExecutableFinder

Constructors

Link copied to clipboard
constructor(seq: Sequence<E>)

Properties

Link copied to clipboard
abstract val name: String

Functions

Link copied to clipboard
fun contact(other: BaseFinder<E, Self>): Self

Concatenate with another finder.

fun contact(other: Array<E>): Self

Concatenate with another array.

fun contact(other: Iterable<E>): Self

Concatenate with another iterable.

fun contact(other: Sequence<E>): Self

Concatenate with another sequence.

Link copied to clipboard
fun filter(filter: E.() -> Boolean): Self

Filter with a predicate.

Link copied to clipboard
fun filterByAssignableParamTypes(vararg paramTypes: Class<*>?): Self

Filter by parameter types or subclass of types, or if null to skip check some parameters

Link copied to clipboard
fun filterByExceptionTypes(vararg exceptionTypes: Class<*>): Self

Filter by exception types

Link copied to clipboard
fun filterByModifiers(predicate: (modifiers: Int) -> Boolean): Self

Use condition to filter by the modifiers.

fun filterByModifiers(modifiers: Int): Self

Filter by the same modifiers.

Link copied to clipboard
fun filterByParamCount(predicate: (Int) -> Boolean): Self

Use condition to filter parameter count

Filter by parameter count

Filter by parameter count in range

Link copied to clipboard
fun filterByParamTypes(vararg paramTypes: Class<*>?): Self

Filter by parameter types, or if null to skip check some parameters

fun filterByParamTypes(predicate: (Array<Class<*>>) -> Boolean): Self

Use condition to filter parameter types

Link copied to clipboard

Filter the executable if the parameter is empty

Link copied to clipboard

Filter exclude the modifiers.

Link copied to clipboard

Filter include the modifiers.

Link copied to clipboard

Filter if they are native.

Link copied to clipboard

Filter if they are non-native.

Link copied to clipboard

Filter if they are non-package-private.

Link copied to clipboard

Filter if they are non-private.

Link copied to clipboard

Filter if they are non-protected.

Link copied to clipboard

Filter if they are non-public.

Link copied to clipboard

Filter if they are non-varargs.

Link copied to clipboard

Filter the executable if the parameter is not empty

Link copied to clipboard

Filter if they are package-private.

Link copied to clipboard

Filter if they are private.

Link copied to clipboard

Filter if they are protected.

Link copied to clipboard

Filter if they are public.

Link copied to clipboard

Filter if they are varargs.

Link copied to clipboard
override fun first(): E

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

override fun first(condition: E.() -> Boolean): E

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

Link copied to clipboard
override fun firstOrNull(): E?

Get the first element or null if not found.

override fun firstOrNull(condition: E.() -> Boolean): E?

Get the first element by condition or null if not found

Link copied to clipboard
fun forEach(action: (E) -> Unit)

For-each loop for.

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

For-each loop with index for.

Link copied to clipboard
override fun last(): E

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

override fun last(condition: E.() -> Boolean): E

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

Link copied to clipboard
override fun lastOrNull(): E?

Get the last element or null if not found.

override fun lastOrNull(condition: E.() -> Boolean): E?

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: (E) -> R): C

Map to the collection.

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

Map to the hashset.

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

Map to the list.

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

Map to the mutable list.

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

Map to the mutable set.

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

Map to the set.

Link copied to clipboard
fun onEach(action: (E) -> Unit): Self

On-each loop for.

Link copied to clipboard
fun onEachIndexed(action: (index: Int, E) -> Unit): Self

On-each loop with index for.

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

Check sequence only has one element.

fun requireSingle(condition: E.() -> Boolean): Self
Link copied to clipboard

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

fun requireSingleOrNull(condition: E.() -> Boolean): Self?
Link copied to clipboard
override fun single(): E

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

override fun single(condition: E.() -> Boolean): E
Link copied to clipboard
override fun singleOrNull(): E?

Get the single element or null if not found.

override fun singleOrNull(condition: E.() -> Boolean): E?
Link copied to clipboard
fun <C : MutableCollection<E>> 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<E>

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<E>

Make sequence to the set.