AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
MapFrame(String id,
Object type)
Construct a frame with a given id and type.
|
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object value)
Add a value to the existing values of a key.
|
boolean |
containsKey(String key)
Check whether or not a key is defined.
|
boolean |
equals(Object other) |
List<Object> |
get(String key)
Access a value in the frame.
|
String |
getID()
Access the ID of the frame.
|
Object |
getType()
Access the type of the frame.
|
int |
hashCode() |
Set<String> |
keySet()
Retrieve the set of all keys.
|
void |
set(String key,
List<Object> values)
Set the values of the key (previous values are erased).
|
void |
set(String key,
Object value)
Set the value of the key (previous values are erased).
|
void |
setID(String id)
Modify the type of the frame.
|
void |
setType(Object type)
Modify the type of the frame.
|
String |
toString() |
protected void |
toString(StringBuilder sb,
HashSet<String> seen) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public Object getType()
public void setType(Object type)
public void setID(String id)
public List<Object> get(String key)
public void set(String key, Object value)
public void set(String key, List<Object> values)
public boolean containsKey(String key)
containsKey
in interface Frame
public int hashCode()
public boolean equals(Object other)
public String toString()
toString
in class AbstractMap<String,Object>
protected void toString(StringBuilder sb, HashSet<String> seen)
Copyright © 2015 Pablo Duboue. All rights reserved.