public class LayerBreakdownVisitor extends BFTreeVisitor<IItem>
| Modifier and Type | Class and Description |
|---|---|
static class |
LayerBreakdownVisitor.LayerBreakdown |
static class |
LayerBreakdownVisitor.LayerEntry |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<LayerBreakdownVisitor.LayerBreakdown> |
BREAKDOWN_COMPARATOR |
private static java.util.Comparator<LayerBreakdownVisitor.LayerEntry> |
ENTRY_COMPARATOR |
private java.util.Map<java.lang.Integer,LayerBreakdownVisitor.LayerBreakdown> |
layersMap |
| Constructor and Description |
|---|
LayerBreakdownVisitor() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<LayerBreakdownVisitor.LayerBreakdown> |
getLayers() |
protected void |
processPayload(IItem value,
int level)
Override in subclasses to act on the values in breadth first order.
|
visitpublic static final java.util.Comparator<LayerBreakdownVisitor.LayerBreakdown> BREAKDOWN_COMPARATOR
private static final java.util.Comparator<LayerBreakdownVisitor.LayerEntry> ENTRY_COMPARATOR
private java.util.Map<java.lang.Integer,LayerBreakdownVisitor.LayerBreakdown> layersMap
protected void processPayload(IItem value, int level)
BFTreeVisitorprocessPayload in class BFTreeVisitor<IItem>value - the payload.level - the tree level.public java.util.List<LayerBreakdownVisitor.LayerBreakdown> getLayers()