public class MapItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
MapItem.MapWhole |
Modifier and Type | Field and Description |
---|---|
MapItem |
chain |
MapItem.MapWhole[] |
halves
halves - MapHalf and trinary tree for each direction
|
MapFlag |
mapFlag |
int |
slot |
Constructor and Description |
---|
MapItem(MapItem c,
java.lang.String l,
java.lang.String r,
MapFlag f,
int s)
MapItem -- mapping entries on a chain
|
MapItem(MapItem c,
java.lang.String l,
java.lang.String r,
MapFlag f,
int s,
int caseMode)
MapItem -- mapping entries on a chain
|
Modifier and Type | Method and Description |
---|---|
MapFlag |
flag() |
MapHalf |
half(MapTableT dir) |
boolean |
isParent(MapItem other,
MapTableT dir) |
MapHalf |
lhs() |
MapItem |
next() |
MapHalf |
ohs(MapTableT dir) |
MapItem |
reverse()
MapItem::Reverse - reverse the chain, to swap precedence
|
MapHalf |
rhs() |
int |
slot() |
MapHalf |
ths(MapTableT dir) |
MapItem.MapWhole |
whole(MapTableT dir) |
public MapItem chain
public MapFlag mapFlag
public int slot
public MapItem.MapWhole[] halves
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/...
public MapItem(MapItem c, java.lang.String l, java.lang.String r, MapFlag f, int s)
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().
c
- chainl
- left mappingr
- right mappingf
- map flagss
- slotpublic MapItem(MapItem c, java.lang.String l, java.lang.String r, MapFlag f, int s, int caseMode)
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().
c
- chainl
- left mappingr
- right mappingf
- map flagss
- slotcaseMode
- case mode