core / org.pinelang.util / IndexedMap
IndexedMap¶
class IndexedMap<V>
Constructors¶
| Name | Summary |
|---|---|
| <init> | IndexedMap(initialCapacity:Int= 10, index:MutableMap<String,Int> = HashMap(initialCapacity), props:MutableList<V> = ArrayList(initialCapacity)) |
Properties¶
| Name | Summary |
|---|---|
| index | val index:MutableMap<String,Int> |
| size | val size:Int |
Functions¶
| Name | Summary |
|---|---|
| contains | operator fun contains(key:String):Boolean |
| get | operator fun get(idx:Int): V?operator fun get(key:String): V? |
| getIndex | fun getIndex(key:String):Int |
| getIndexOrNull | fun getIndexOrNull(key:String):Int? |
| getValue | fun getValue(key:String): Vfun getValue(index:Int): V |
| set | operator fun set(key:String, value: V):IndexedMap<V> |