Class AddressTreeMap<V>

java.lang.Object
java.util.AbstractMap<Long,V>
java.util.concurrent.ConcurrentSkipListMap<Long,V>
com.pnfsoftware.jeb.util.collect.AddressTreeMap<V>
Type Parameters:
V - value type
All Implemented Interfaces:
Serializable, Cloneable, ConcurrentMap<Long,V>, ConcurrentNavigableMap<Long,V>, Map<Long,V>, NavigableMap<Long,V>, SequencedMap<Long,V>, SortedMap<Long,V>

@Ser public class AddressTreeMap<V> extends ConcurrentSkipListMap<Long,V>
A concurrent ordered map whose keys are addresses represented as unsigned long values.
See Also:
  • Constructor Details

    • AddressTreeMap

      public AddressTreeMap(int bitsize)
      Create an ordered map designed to hold memory keys as addresses.
      Parameters:
      bitsize - in [1, 64]
  • Method Details

    • put

      public V put(Long k, V v)
      Insert a value for an address key.
      Specified by:
      put in interface Map<Long,V>
      Overrides:
      put in class ConcurrentSkipListMap<Long,V>
      Parameters:
      k - address key
      v - value
      Returns:
      previous value, or null