Interface IndexMapper

All Known Implementing Classes:
AddressBasedIndexMapper

public interface IndexMapper
Interface for mapping indexes when the LayoutModel changes. In other words, if the mapping of layout indexes to some data model changes and you want the FieldPanel to continue to display the same model data on the screen, the IndexMapper can be used to convert old indexes to new indexes.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final IndexMapper
     
  • Method Summary

    Modifier and Type
    Method
    Description
    map(BigInteger value)
    Maps an index from one address mapping to another.
  • Field Details

    • IDENTITY_MAPPER

      static final IndexMapper IDENTITY_MAPPER
  • Method Details

    • map

      BigInteger map(BigInteger value)
      Maps an index from one address mapping to another. This method will return BigInteger.ZERO if there no mapping.
      Parameters:
      value - the index value to map from an old index map to a new index map
      Returns:
      the mapped index