Uses of Class
convex.core.data.MapEntry
Packages that use MapEntry
Package
Description
Data structures and algorithms, including a complete set of classes
required to implement immutable, decentralised data objects.
Core CVM implementation
-
Uses of MapEntry in convex.core.data
Methods in convex.core.data that return MapEntryModifier and TypeMethodDescriptionstatic MapEntry
MapEntry.convertOrNull(AVector v)
MapEntry.create(K key, V value)
Creates a new MapEntry with the provided key and valueABlobMap.entryAt(long i)
AMap.entryAt(long i)
Gets the entry in this map at a specified index, according to the map-specific order.ARecord.entryAt(long i)
ARecordGeneric.entryAt(long i)
BlobMap.entryAt(long ix)
MapLeaf.entryAt(long i)
MapTree.entryAt(long i)
AMap.get(long i)
Gets the MapEntry for the given keyAMap.getEntryByHash(Hash hash)
Gets the map entry with the specified hashARecord.getEntryByHash(Hash hash)
BlobMap.getEntryByHash(Hash hash)
MapLeaf.getEntryByHash(Hash hash)
MapTree.getEntryByHash(Hash hash)
ABlobMap.getKeyRefEntry(Ref<ACell> ref)
AMap.getKeyRefEntry(Ref<ACell> ref)
Get an entry given a Ref to the key value.ARecord.getKeyRefEntry(Ref<ACell> ref)
MapLeaf.getKeyRefEntry(Ref<ACell> ref)
MapTree.getKeyRefEntry(Ref<ACell> ref)
Create a map entry, converting key and value to correct CVM types.MapEntry.read(ByteBuffer bb)
Reads aMapEntry
from a ByteBuffer.MapEntry.readCompressed(ByteBuffer bb)
Reads a MapEntry or null from a ByteBuffer.MapEntry.updateRefs(IRefFunction func)
Methods in convex.core.data that return types with arguments of type MapEntryModifier and TypeMethodDescriptionAMap.entryVector()
Gets a vector of all map entries.AMap.getElementRef(long index)
Methods in convex.core.data with parameters of type MapEntryModifier and TypeMethodDescriptionAHashMap.assocEntry(MapEntry<K,V> e)
AHashMap.assocEntry(MapEntry<K,V> e, int shift)
AMap.assocEntry(MapEntry<K,V> e)
Associate the given map entry into the map.ARecord.assocEntry(MapEntry<Keyword,ACell> e)
BlobMap.assocEntry(MapEntry<K,V> e)
MapLeaf.assocEntry(MapEntry<K,V> e)
MapLeaf.assocEntry(MapEntry<K,V> e, int shift)
MapTree.assocEntry(MapEntry<K,V> e)
MapTree.assocEntry(MapEntry<K,V> e, int shift)
int
Creates a ListMap with the specified entries.Creates a MapLeaf with the specified entries.static int
MapEntry.encodeCompressed(MapEntry<?,?> me, byte[] bs, int pos)
Writes a MapEntry or null content in compressed format (no count).boolean
boolean
Checks if the keys of two map entries are equalMapLeaf.unsafeCreate(MapEntry<K,V>... items)
Creates aMapLeaf
Method parameters in convex.core.data with type arguments of type MapEntryModifier and TypeMethodDescriptionCreate a map with a collection of entries.Maps.createWithShift(int shift, List<MapEntry<K,V>> entries)
Create a hashmap with the correct shift and given entries.Maps a function over all entries in this Map to produce updated entries.Maps a function over all entries in this Map to produce updated entries.abstract <R> R
AMap.reduceEntries(BiFunction<? super R,MapEntry<K,V>,? extends R> func, R initial)
Reduce over all map entries in this map<R> R
ARecord.reduceEntries(BiFunction<? super R,MapEntry<Keyword,ACell>,? extends R> func, R initial)
<R> R
BlobMap.reduceEntries(BiFunction<? super R,MapEntry<K,V>,? extends R> func, R initial)
<R> R
MapLeaf.reduceEntries(BiFunction<? super R,MapEntry<K,V>,? extends R> func, R initial)
<R> R
MapTree.reduceEntries(BiFunction<? super R,MapEntry<K,V>,? extends R> func, R initial)
Constructors in convex.core.data with parameters of type MapEntry -
Uses of MapEntry in convex.core.lang
Methods in convex.core.lang that return MapEntryModifier and TypeMethodDescriptionRT.ensureMapEntry(ACell x)
Converts an object to a map entry.Context.lookupDynamicEntry(Address address, Symbol sym)
Looks up an environment entry for a specific address without consuming juice.