AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.collect.Maps Class Reference

Static Public Member Functions

static< K, V > HashMap< K, V > newHashMap ()
 
static< K, V > TreeMap< K, V > newTreeMap ()
 

Detailed Description

Provides static methods for creating mutable

Maps

instances easily.

Note: This was copied from the com.google.android.collect.Maps class

Author
markf.nosp@m.@goo.nosp@m.gle.c.nosp@m.om (Mark Friedman)

Definition at line 19 of file Maps.java.

Member Function Documentation

◆ newHashMap()

static <K, V> HashMap<K, V> com.google.appinventor.components.runtime.collect.Maps.newHashMap ( )
static

Creates a HashMap instance.

Returns
a newly-created, initially-empty HashMap

Definition at line 25 of file Maps.java.

◆ newTreeMap()

static <K, V> TreeMap<K, V> com.google.appinventor.components.runtime.collect.Maps.newTreeMap ( )
static

Creates a TreeMap instance.

Returns
a newly-created, initially-empty TreeMap

Definition at line 34 of file Maps.java.


The documentation for this class was generated from the following file: