Class AddressBasedIndexMapper

  • All Implemented Interfaces:
    IndexMapper

    public class AddressBasedIndexMapper
    extends java.lang.Object
    implements IndexMapper
    Implementation of IndexMapper that uses an old and new AddressIndexMap to map indexes when the AddressIndexMap changes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      ChangeModifier and Type Method Description
      java.math.BigInteger map​(java.math.BigInteger value)
      Maps an index from one address mapping to another.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • map

        public java.math.BigInteger map​(java.math.BigInteger value)
        Description copied from interface: IndexMapper
        Maps an index from one address mapping to another. This method will return BigInteger.ZERO if there no mapping.
        Specified by:
        map in interface IndexMapper
        Parameters:
        value - the index value to map from an old index map to a new index map
        Returns:
        the mapped index