Class AnchorConverter


  • public class AnchorConverter
    extends Object
    A helper class for coverting between external and internal representation of an anchor. The idea behind it is that we want anchors and regular ids to be distinguishible and we achive that by treating any id lower than #MIN_ANCHOR_VALUE as regular ids, and those that are in range between #MIN_ANCHOR_VALUE and #MAX_ANCHOR_VALUE - as anchors. But on the storage level, we would still want to use 0-based indexation for anchors. That is why we need this conversion logic.
    • Constructor Detail

      • AnchorConverter

        public AnchorConverter()
    • Method Detail

      • isAnchor

        public static boolean isAnchor​(int anchor)