WorldStream

open class WorldStream(dataSource: BackingDataSource<World>) : SimpleStream<World, WorldStream> , IdentifiableOps<World, WorldStream>

Functions

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

{@inheritDoc}

any
Link copied to clipboard
fun any(): World

Get any entity from the stream

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

{@inheritDoc}

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

Check if the stream contains any of the provided entities

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

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

{@inheritDoc}

first
Link copied to clipboard
fun first(): World

Get the first entity from the stream

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

Get the first entity from the stream

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

{@inheritDoc}

hashCode
Link copied to clipboard
fun hashCode(vararg hashCodes: Int): WorldStream
id
Link copied to clipboard
open fun id(vararg ids: Int): WorldStream
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<World>
last
Link copied to clipboard
fun last(): World

Get the last entity from the stream

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

Get the last entity from the stream

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

{@inheritDoc}

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

{@inheritDoc}

nil
Link copied to clipboard
open override fun nil(): World

nil value of the entity

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

{@inheritDoc}

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

{@inheritDoc}

spliterator
Link copied to clipboard
open override fun spliterator(): Spliterator<World>

Properties

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