Scoop API

scoop:scoop.std:0.1.0

LinkedHashMap

class LinkedHashMap

source · line 7
public
public class LinkedHashMap<K, V> public constructor() : MutableMap<K, V> where K: Equals<K>, K: Hash

A mutable hash map whose iteration follows insertion order. Replacing an existing value retains its position; removing and reinserting moves it to the end.

function remove

source · line 88
public
public override fun remove(key: K): V?
  • Overrides remove · MutableMap

Removes the key and returns its former value, or None if absent.

function put

source · line 60
public
public override fun put(key: K, value: V): V?
  • Overrides put · MutableMap

Associates the value with the key and returns the previous value, or None for a new key.

function get

source · line 41
public
public override operator fun get(key: K): V?
  • Overrides get · Map
  • Overrides get

Returns the value associated with the key, or None when absent.