JavaScriptCollection

Inheritance: java.lang.Object

public class JavaScriptCollection

This class represents collection of JavaScript.

Methods

MethodDescription
getKeys()List of keys in JavaScript collection.
get_Item(String key)Gets JavaScript from collection by its key.
set_Item(String key, String value)Sets JavaScript from collection by its key.
remove(String key)Removes JavaScript by its name.

getKeys()

public List<String> getKeys()

List of keys in JavaScript collection.

Returns: java.util.List<java.lang.String> - List collection

get_Item(String key)

public String get_Item(String key)

Gets JavaScript from collection by its key.

Parameters:

ParameterTypeDescription
keyjava.lang.StringString object Key value.

Returns: java.lang.String - String object Javascript collection.

set_Item(String key, String value)

public void set_Item(String key, String value)

Sets JavaScript from collection by its key.

Parameters:

ParameterTypeDescription
keyjava.lang.StringString object Javascript collection.
valuejava.lang.StringString object Key value.

remove(String key)

public boolean remove(String key)

Removes JavaScript by its name.

Parameters:

ParameterTypeDescription
keyjava.lang.StringString object Key value.

Returns: boolean - boolean value True - if javascript removed; otherwise, false.