DepositBoxItemStream

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

Functions

action
Link copied to clipboard
open fun action(vararg actions: Pattern?): DepositBoxItemStream
open fun action(vararg actions: String?): DepositBoxItemStream
open fun action(actions: Collection<String>): DepositBoxItemStream
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>): DepositBoxItemStream
open override fun filter(predicate: Predicate<in Item>, difficulty: FilterDifficulty): DepositBoxItemStream

{@inheritDoc}

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

{@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): DepositBoxItemStream
id
Link copied to clipboard
open fun id(vararg ids: Int): DepositBoxItemStream
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?): DepositBoxItemStream
open fun name(vararg names: String?): DepositBoxItemStream
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): DepositBoxItemStream
shuffled
Link copied to clipboard
fun shuffled(): List<Item>
sorted
Link copied to clipboard
open override fun sorted(comparator: Comparator<in Item>): DepositBoxItemStream

{@inheritDoc}

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

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