Map

An object that maps keys to values

Most of the methods are just a wrapper around Java Map class. All the overloaded methods are supported.

You can check their documentation for more detail. Java Map: https://docs.oracle.com/javase/8/docs/api/java/util/Map.html

Example

    // Create a map
    var map = Map()

    // Put something into the map
    map.put("key", "something")

    // Get it back
    Con.out(map.get("key")) // something

Methods
entries
any[] entries()

Returns an array of array where the inner array is the key-value pair [key, value].

Return
any[] An array of array where the inner array is the key-value pair [key, value]
keys
any[] keys()

Returns all the keys contained in this map.

Return
any[] keys contained in this map
values
any[] values()

Returns all the values contained in this map.

Return
any[] values contained in this map

© 2024 - Macrorify by KoK-CODE