Skip to main content

Map2

Complete API reference for Map2, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Lists

Component: no


public class Map2

Constructors

SignatureDescription
Map2(Class, Class)Creates a new instance of Map2.

Methods

SignatureReturnsDescription
put(Object, Object)voidSets or updates the the value.
get(Object)ObjectReturns the current value.
replace(Object, Object)voidPerforms the replace operation using the provided parameters (key, newValue).
remove(Object)voidRemoves an item from the collection.
getKeyClass()ClassReturns the current key class.
getValueClass()ClassReturns the current value class.
getKeyList()ListReturns the current key list.
getDirectKeyList()ListReturns the current direct key list.
getValueList()ListReturns the current value list.
getDirectValueList()ListReturns the current direct value list.
toJson()StringExecutes toJson and returns after the underlying engine call finishes.
clear()voidClears or resets the object's state.
getSize()intReturns the current size.

Static Methods

SignatureReturnsDescription
inspectorController()ClassInspectorEntryExecutes inspectorController and returns after the underlying engine call finishes.
fromJson(String)Map2Performs the fromJson operation using the provided parameters (json).