public class HashSlotMap extends Object implements SlotMap
| Constructor and Description |
|---|
HashSlotMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Slot newSlot)
Insert a new slot to the map.
|
boolean |
isEmpty()
Return whether the map is empty.
|
Iterator<Slot> |
iterator() |
Slot |
modify(Object key,
int index,
int attributes)
Return the Slot that matches EITHER "key" or "index".
|
Slot |
query(Object key,
int index)
Retrieve the slot at EITHER key or index, or return null if the slot cannot be found.
|
void |
remove(Object key,
int index)
Remove the slot at either "key" or "index".
|
void |
replace(Slot oldSlot,
Slot newSlot)
Replace "slot" with a new slot.
|
int |
size()
Return the size of the map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic int size()
SlotMappublic boolean isEmpty()
SlotMappublic Slot query(Object key, int index)
SlotMappublic Slot modify(Object key, int index, int attributes)
SlotMapmodify in interface SlotMapkey - The key for the slot, which should be a String or a Symbol.index - if key is zero, then this will be used as the key instead.attributes - the attributes to be set on the slot if a new slot is created. Existing
slots will not be modified.public void replace(Slot oldSlot, Slot newSlot)
SlotMappublic void add(Slot newSlot)
SlotMappublic void remove(Object key, int index)
SlotMapCopyright © 2023 HtmlUnit. All rights reserved.