Package com.perforce.p4java.mapapi
Class MapItem
- java.lang.Object
-
- com.perforce.p4java.mapapi.MapItem
-
public class MapItem extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
MapItem.MapWhole
-
Constructor Summary
Constructors Constructor Description MapItem(MapItem c, java.lang.String l, java.lang.String r, MapFlag f, int s)
MapItem -- mapping entries on a chainMapItem(MapItem c, java.lang.String l, java.lang.String r, MapFlag f, int s, int caseMode)
MapItem -- mapping entries on a chain
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 precedenceMapHalf
rhs()
int
slot()
MapHalf
ths(MapTableT dir)
MapItem.MapWhole
whole(MapTableT dir)
-
-
-
Field Detail
-
chain
public MapItem chain
-
mapFlag
public MapFlag mapFlag
-
slot
public int slot
-
halves
public MapItem.MapWhole[] halves
halves - MapHalf and trinary tree for each directionTrinary 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 chainA 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
- chainl
- left mappingr
- right mappingf
- map flagss
- 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 chainA 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
- chainl
- left mappingr
- right mappingf
- map flagss
- slotcaseMode
- case mode
-
-
Method Detail
-
whole
public MapItem.MapWhole whole(MapTableT dir)
-
lhs
public MapHalf lhs()
-
rhs
public MapHalf rhs()
-
next
public MapItem next()
-
flag
public MapFlag flag()
-
slot
public int slot()
-
reverse
public MapItem reverse()
MapItem::Reverse - reverse the chain, to swap precedence- Returns:
- map item
-
-