MutablePointingList

A MutablePointingList refers to a list of values that are pointed to by mutable pointers.

Since

0.1.0

Parameters

T

The type of the value the pointers point to

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Impl<T>(val pointers: MutablePointerList<T>) : MutablePointingList<T>

The implementation of the MutablePointingList.

Properties

Link copied to clipboard
abstract override val pointers: MutableList<Pointer<T>>

The list of pointers

Link copied to clipboard
abstract override val size: Int

Functions

Link copied to clipboard
abstract override fun add(element: T): Boolean
abstract fun add(index: Int, element: T)
Link copied to clipboard
abstract override fun addAll(elements: Collection<T>): Boolean
abstract fun addAll(index: Int, elements: Collection<T>): Boolean
Link copied to clipboard
abstract override fun clear()
Link copied to clipboard
abstract operator override fun contains(element: T): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
abstract operator fun get(index: Int): T
Link copied to clipboard
abstract fun indexOf(element: T): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun lastIndexOf(element: T): Int
Link copied to clipboard
abstract fun listIterator(): ListIterator<T>
abstract fun listIterator(index: Int): ListIterator<T>
Link copied to clipboard

Create a mutable list of pointers pointing to the values of the list

Link copied to clipboard

Create a list of pointers pointing to the values of the list

Link copied to clipboard
abstract override fun remove(element: T): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<T>): Boolean
Link copied to clipboard
abstract fun removeAt(index: Int): T
Link copied to clipboard
abstract override fun retainAll(elements: Collection<T>): Boolean
Link copied to clipboard
abstract operator fun set(index: Int, element: T): T
Link copied to clipboard
abstract fun subList(fromIndex: Int, toIndex: Int): List<T>
Link copied to clipboard

You can create a list that points to the values of a PointerList with this function.

You can create a list that points to the values of a MutablePointerList with this function.