Class MapItem


  • public class MapItem
    extends java.lang.Object
    • Field Detail

      • slot

        public int slot
      • halves

        public MapItem.MapWhole[] halves
        halves - MapHalf and trinary tree for each direction

        Trinary tree?

        left: less than this mapping right: greater than this mapping center: included in this mapping

        e.g. a center for //depot/... might be //depot/main/...

    • Constructor Detail

      • MapItem

        public MapItem​(MapItem c,
                       java.lang.String l,
                       java.lang.String r,
                       MapFlag f,
                       int s)
        MapItem -- mapping entries on a chain

        A MapItem holds two MapHalfs that constitute a single entry in a MapTable. MapItem also implement fast searching for entries for MapTable::Check() and MapTable::Translate().

        Parameters:
        c - chain
        l - left mapping
        r - right mapping
        f - map flags
        s - slot
      • MapItem

        public MapItem​(MapItem c,
                       java.lang.String l,
                       java.lang.String r,
                       MapFlag f,
                       int s,
                       int caseMode)
        MapItem -- mapping entries on a chain

        A MapItem holds two MapHalfs that constitute a single entry in a MapTable. MapItem also implement fast searching for entries for MapTable::Check() and MapTable::Translate().

        Parameters:
        c - chain
        l - left mapping
        r - right mapping
        f - map flags
        s - slot
        caseMode - case mode