| 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.
|
AtomicValue |
getKey()
Get the key
|
UType |
getKeyUType()
Get the lowest common item type of the keys in the map
|
GroundedValue |
getValue()
Get the value
|
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
|
atomize, call, deepEquals, effectiveBooleanValue, export, getAnnotations, getArity, getDescription, getFunctionItemType, getFunctionName, getGenre, getItemTypeOfSequence, getOperandRoles, getTypedValue, getUnicodeStringValue, isArray, isKnownToConform, isMap, isTrustedResultType, itemAt, makeNewContext, mapToString, toShortStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSequenceVariadicgetLength, getStringValue, head, isStreamed, iterate, reduce, subsequenceasIterable, concatenate, containsNode, materializemakeRepeatablepublic AtomicValue key
public GroundedValue value
public SingleEntryMap(AtomicValue key, GroundedValue value)
public AtomicValue getKey()
public GroundedValue getValue()
public GroundedValue get(AtomicValue key)
public int size()
public boolean isEmpty()
public AtomicIterator keys()
public java.lang.Iterable<KeyValuePair> keyValuePairs()
keyValuePairs in class 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 class MapItemth - the type hierarchy cachepublic UType getKeyUType()
getKeyUType in class MapItemCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.