mirai-core / net.mamoe.mirai.utils / LockFreeLinkedListNode

LockFreeLinkedListNode

open class LockFreeLinkedListNode<E>

Constructors

<init>

LockFreeLinkedListNode(nextNode: LockFreeLinkedListNode<E>?, initialNodeValue: E?)

Properties

nodeValue

open val nodeValue: E

Functions

allMatching

Check if all the node which is not Tail matches the condition

fun allMatching(condition: (LockFreeLinkedListNode<E>) -> Boolean): Boolean

iterateBeforeFirst

Returns the former node of the last node whence filter returns true

fun iterateBeforeFirst(filter: (LockFreeLinkedListNode<E>) -> Boolean): LockFreeLinkedListNode<E>

letValueIfValid

fun <R> letValueIfValid(block: (E) -> R): R?

toString

open fun toString(): String

Extension Functions

isRemoved

fun <E> LockFreeLinkedListNode<E>.isRemoved(): Boolean