public class BaseTypesMap<K,V> extends LinkedHashMap<K,V> implements Serializable
LinkedHashMap
that checks the type of all keys and values against a set of predefined data types in
VALID_CLASSES
.Modifier and Type | Class and Description |
---|---|
static class |
BaseTypesMap.BaseTypesEntry |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
BaseTypesMap()
Default constructor.
|
BaseTypesMap(int initialCapacity)
Constructor that takes an initial capacity.
|
BaseTypesMap(Map<? extends K,? extends V> m)
Create a new base types map from the existing map.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkType(Object obj)
Checks the type of obj for null or one of the valid types, otherwise throws an IllegalArgumentException.
|
BaseTypesMap<K,V> |
clone()
Performs a deep clone of this map.
|
BaseTypesMap.BaseTypesEntry[] |
getEntries() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
void |
setEntries(BaseTypesMap.BaseTypesEntry[] entries) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, size
public BaseTypesMap()
public BaseTypesMap(int initialCapacity)
public static final void checkType(Object obj)
public BaseTypesMap.BaseTypesEntry[] getEntries()
public void setEntries(BaseTypesMap.BaseTypesEntry[] entries)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.