MutableBuffer

interface MutableBuffer<T> : Buffer<T>

A generic mutable random-access structure for both primitives and objects.

Parameters

T

the type of elements contained in the buffer.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun copy(): MutableBuffer<T>

Returns a shallow copy of the buffer.

Link copied to clipboard
abstract operator fun get(index: Int): T

Gets element at given index.

Link copied to clipboard
abstract operator fun iterator(): Iterator<T>

Iterates over all elements.

Link copied to clipboard
abstract operator fun set(index: Int, value: T)

Sets the array element at the specified index to the specified value.

Link copied to clipboard
abstract override fun toString(): String

Properties

Link copied to clipboard
abstract val size: Int

The size of this buffer.

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Sources

Link copied to clipboard