public class SingleEntryMap extends java.lang.Object implements MapItem
| Modifier and Type | Field and Description | 
|---|---|
AtomicValue | 
key  | 
GroundedValue<?> | 
value  | 
| Constructor and Description | 
|---|
SingleEntryMap(AtomicValue key,
              GroundedValue<?> value)  | 
| Modifier and Type | Method and Description | 
|---|---|
MapItem | 
addEntry(AtomicValue key,
        GroundedValue<?> value)
Create a new map containing the existing entries in the map plus an additional entry,
 without modifying the original. 
 | 
boolean | 
conforms(AtomicType keyType,
        SequenceType valueType,
        TypeHierarchy th)
Ask whether the map conforms to a given map type 
 | 
GroundedValue<?> | 
get(AtomicValue key)
Get an entry from the Map 
 | 
ItemType | 
getItemType(TypeHierarchy th)
Get the type of the map. 
 | 
UType | 
getKeyUType()
Get the lowest common item type of the keys in the map 
 | 
boolean | 
isEmpty()
Ask whether the map is empty 
 | 
AtomicIterator | 
keys()
Get the set of all key values in the map. 
 | 
java.lang.Iterable<KeyValuePair> | 
keyValuePairs()
Get the set of all key-value pairs in the map 
 | 
MapItem | 
remove(AtomicValue key)
Remove an entry from the map 
 | 
int | 
size()
Get the size of the map 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitatomize, call, deepEquals, effectiveBooleanValue, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemTypeOfSequence, getOperandRoles, getStringValue, getStringValueCS, getTypedValue, isArray, isKnownToConform, isMap, isTrustedResultType, itemAt, makeNewContext, mapToString, toShortStringargumentArraygetLength, head, isStreamed, iterate, iterator, reduce, subsequence, toGroundedValueasIterable, materializemakeRepeatablepublic AtomicValue key
public GroundedValue<?> value
public SingleEntryMap(AtomicValue key, GroundedValue<?> value)
public GroundedValue<?> get(AtomicValue key)
public int size()
public boolean isEmpty()
public AtomicIterator keys()
public java.lang.Iterable<KeyValuePair> keyValuePairs()
keyValuePairs in interface MapItempublic MapItem addEntry(AtomicValue key, GroundedValue<?> value)
public MapItem remove(AtomicValue key)
public boolean conforms(AtomicType keyType, SequenceType valueType, TypeHierarchy th)
public ItemType getItemType(TypeHierarchy th)
getItemType in interface MapItemth - the type hierarchy cachepublic UType getKeyUType()
getKeyUType in interface MapItemCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.