public class Hashtable extends java.lang.Object implements java.io.Serializable, java.lang.Iterable<Hashtable.Entry>
This second one is important because JavaScript handling of the iterator is completely different from the way that Java does it. In Java an attempt to modify a collection on a HashMap or LinkedHashMap while iterating through it (except by using the "remove" method on the Iterator object itself) results in a ConcurrentModificationException. JavaScript Maps and Sets explicitly allow the collection to be modified, or even cleared completely, while iterators exist, and even lets an iterator keep on iterating on a collection that was empty when it was created..
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Hashtable.Entry
One entry in the hash table. 
 | 
| Constructor and Description | 
|---|
Hashtable()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()  | 
java.lang.Object | 
delete(java.lang.Object key)  | 
java.lang.Object | 
get(java.lang.Object key)  | 
boolean | 
has(java.lang.Object key)  | 
java.util.Iterator<Hashtable.Entry> | 
iterator()  | 
void | 
put(java.lang.Object key,
   java.lang.Object value)  | 
int | 
size()  | 
public int size()
public void put(java.lang.Object key,
                java.lang.Object value)
public java.lang.Object get(java.lang.Object key)
public boolean has(java.lang.Object key)
public java.lang.Object delete(java.lang.Object key)
public void clear()
public java.util.Iterator<Hashtable.Entry> iterator()
iterator in interface java.lang.Iterable<Hashtable.Entry>Copyright © 2010 - 2023 Adobe. All Rights Reserved