public class HashSlotMap extends java.lang.Object implements SlotMap
Constructor and Description |
---|
HashSlotMap() |
Modifier and Type | Method and Description |
---|---|
void |
addSlot(org.mozilla.javascript.ScriptableObject.Slot newSlot)
Insert a new slot to the map.
|
org.mozilla.javascript.ScriptableObject.Slot |
get(java.lang.Object key,
int index,
org.mozilla.javascript.ScriptableObject.SlotAccess accessType)
Return the Slot that matches EITHER "key" or "index".
|
boolean |
isEmpty()
Return whether the map is empty.
|
java.util.Iterator<org.mozilla.javascript.ScriptableObject.Slot> |
iterator() |
org.mozilla.javascript.ScriptableObject.Slot |
query(java.lang.Object key,
int index)
This is an optimization that is the same as get with an accessType of SLOT_QUERY.
|
void |
remove(java.lang.Object key,
int index)
Remove the slot at either "key" or "index".
|
int |
size()
Return the size of the map.
|
public int size()
SlotMap
public boolean isEmpty()
SlotMap
public org.mozilla.javascript.ScriptableObject.Slot query(java.lang.Object key, int index)
SlotMap
public org.mozilla.javascript.ScriptableObject.Slot get(java.lang.Object key, int index, org.mozilla.javascript.ScriptableObject.SlotAccess accessType)
SlotMap
public void addSlot(org.mozilla.javascript.ScriptableObject.Slot newSlot)
SlotMap
public void remove(java.lang.Object key, int index)
SlotMap
public java.util.Iterator<org.mozilla.javascript.ScriptableObject.Slot> iterator()
iterator
in interface java.lang.Iterable<org.mozilla.javascript.ScriptableObject.Slot>
Copyright © 2010 - 2023 Adobe. All Rights Reserved