CollapseNeighbors

interface CollapseNeighbors<out E> : Collapse<E>

A Collapse that represents only the peers (excluding the local element).

Type Parameters

E

the element type contained in the collapse.

Properties

Link copied to clipboard

Returns a collapse containing only the IDs from this CollapseNeighbors.

Link copied to clipboard
abstract val list: List<E>
Link copied to clipboard
abstract val sequence: Sequence<E>
Link copied to clipboard
abstract val set: Set<E>
Link copied to clipboard
abstract val size: Int
Link copied to clipboard

Returns a collapse containing only the values from this CollapseNeighbors.

Functions

Link copied to clipboard
operator fun <T> Collapse<T>.contains(element: T): Boolean

Checks if the given element is present in this collapse.

Link copied to clipboard
fun <ID : Any, T> Collapse<FieldEntry<ID, T>>.toMap(): Map<ID, T>

Converts this collapse of field entries into a map from entry IDs to their values.