public class ConnectedEntityCollector extends ShallowEntityTraversalUtils.ShallowEntityVisitorBase
| Constructor and Description |
|---|
ConnectedEntityCollector(EShallowEntityType entityType)
Constructor.
|
ConnectedEntityCollector(EShallowEntityType entityType,
java.util.function.Predicate<ShallowEntity> entitySelector)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endVisit(ShallowEntity entity)
Called after visiting all children of an entity in the backtracking phase
of the DFS.
|
java.util.List<java.util.List<ShallowEntity>> |
getConnectedGroups(java.util.List<ShallowEntity> entities)
Returns a list of connected entity groups.
|
boolean |
visit(ShallowEntity entity)
Denotes that visiting the entity begins.
|
public ConnectedEntityCollector(EShallowEntityType entityType)
public ConnectedEntityCollector(EShallowEntityType entityType, java.util.function.Predicate<ShallowEntity> entitySelector)
public boolean visit(ShallowEntity entity)
visit in interface IShallowEntityVisitorvisit in class ShallowEntityTraversalUtils.ShallowEntityVisitorBasepublic void endVisit(ShallowEntity entity)
IShallowEntityVisitor.visit(ShallowEntity) returned true or false. The default
implementation does nothing.endVisit in interface IShallowEntityVisitorendVisit in class ShallowEntityTraversalUtils.ShallowEntityVisitorBasepublic java.util.List<java.util.List<ShallowEntity>> getConnectedGroups(java.util.List<ShallowEntity> entities)