public class StructMap extends Object implements Map
A Map that keeps track of the order in which entries are made. The
values() method returns an unmodifiable List of the values
in the order in which they were added. A new method,
keys() has been added. It returns an unmodifiable List of the
keys in the order in which they were added.
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList |
keys |
protected HashMap |
map |
protected ArrayList |
values |
| Constructor and Description |
|---|
StructMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Collection |
keys() |
Set |
keySet() |
Object |
put(Object key,
Object value) |
void |
putAll(Map t) |
Object |
remove(Object key) |
void |
set(int index,
Object value) |
void |
set(int index,
Object key,
Object value) |
int |
size() |
Collection |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected HashMap map
protected ArrayList keys
protected ArrayList values
public boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object value)
containsValue in interface Mappublic Collection values()
public boolean equals(Object o)
public int hashCode()
public Collection keys()
public void set(int index,
Object value)
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.