BankItemStream

class BankItemStream(dataSource: BackingDataSource<Item>) : ItemStream<BankItemStream>

Functions

action
Link copied to clipboard
open fun action(vararg actions: Pattern?): BankItemStream
open fun action(vararg actions: String?): BankItemStream
open fun action(actions: Collection<String>): BankItemStream
allMatch
Link copied to clipboard
open override fun allMatch(predicate: Predicate<in Item>): Boolean

{@inheritDoc}

any
Link copied to clipboard
fun any(): Item

Get any entity from the stream

anyMatch
Link copied to clipboard
open override fun anyMatch(predicate: Predicate<in Item>): Boolean

{@inheritDoc}

contains
Link copied to clipboard
fun contains(vararg t: Item): Boolean
fun contains(t: Collection<Item>): Boolean

Check if the stream contains any of the provided entities

count
Link copied to clipboard
open override fun count(): Long

{@inheritDoc}

fun count(countStacks: Boolean): Long

Count how many items are in the stream

filter
Link copied to clipboard
open override fun filter(predicate: Predicate<in Item>): BankItemStream
open override fun filter(predicate: Predicate<in Item>, difficulty: FilterDifficulty): BankItemStream

{@inheritDoc}

filtered
Link copied to clipboard
open override fun filtered(predicate: (Item) -> Boolean): BankItemStream
open override fun filtered(predicate: (Item) -> Boolean, difficulty: FilterDifficulty): BankItemStream

{@inheritDoc}

findAny
Link copied to clipboard
open override fun findAny(): Optional<Item>

{@inheritDoc}

findFirst
Link copied to clipboard
open override fun findFirst(): Optional<Item>

{@inheritDoc}

first
Link copied to clipboard
fun first(): Item

Get the first entity from the stream

firstOrNull
Link copied to clipboard
fun firstOrNull(): Item?

Get the first entity from the stream

forEach
Link copied to clipboard
open override fun forEach(action: Consumer<in Item>)

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): BankItemStream
id
Link copied to clipboard
open fun id(vararg ids: Int): BankItemStream
isEmpty
Link copied to clipboard
fun isEmpty(): Boolean

Check if the stream is empty or not

isNotEmpty
Link copied to clipboard
fun isNotEmpty(): Boolean

Check if the stream is NOT empty or not

iterator
Link copied to clipboard
open operator override fun iterator(): Iterator<Item>
last
Link copied to clipboard
fun last(): Item

Get the last entity from the stream

lastOrNull
Link copied to clipboard
fun lastOrNull(): Item?

Get the last entity from the stream

list
Link copied to clipboard
fun list(): List<Item>
max
Link copied to clipboard
open override fun max(comparator: Comparator<in Item>): Optional<Item>

{@inheritDoc}

min
Link copied to clipboard
open override fun min(comparator: Comparator<in Item>): Optional<Item>

{@inheritDoc}

name
Link copied to clipboard
open fun name(vararg names: Pattern?): BankItemStream
open fun name(vararg names: String?): BankItemStream
nil
Link copied to clipboard
open override fun nil(): Item

nil value of the entity

noneMatch
Link copied to clipboard
open override fun noneMatch(predicate: Predicate<in Item>): Boolean

{@inheritDoc}

reversed
Link copied to clipboard
fun reversed(): List<Item>
setNearestTo
Link copied to clipboard
open override fun setNearestTo(nearestTo: Locatable): BankItemStream
shuffled
Link copied to clipboard
fun shuffled(): List<Item>
sorted
Link copied to clipboard
open override fun sorted(comparator: Comparator<in Item>): BankItemStream

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<Item>
viewable
Link copied to clipboard
open fun viewable(): BankItemStream

Properties

backingDataSource
Link copied to clipboard
val backingDataSource: BackingDataSource<Item>
nearestTo
Link copied to clipboard
var nearestTo: Locatable?
pendingFilters
Link copied to clipboard
val pendingFilters: MutableList<PendingFilter<Item>>
sorters
Link copied to clipboard
var sorters: MutableList<Comparator<in Item>>