public abstract class PathExpanders extends Object
PathExpander factory methods.
 
 Use PathExpanderBuilder to build specialized PathExpanders.
| Modifier and Type | Method and Description | 
|---|---|
| static <STATE> PathExpander<STATE> | allTypesAndDirections()A very permissive  PathExpanderthat follows any type in any direction. | 
| static <STATE> PathExpander<STATE> | forConstantDirectionWithTypes(RelationshipType... types)An expander forcing constant relationship direction | 
| static <STATE> PathExpander<STATE> | forDirection(Direction direction)A very permissive  PathExpanderthat follows any type indirection. | 
| static <STATE> PathExpander<STATE> | forType(RelationshipType type)A very permissive  PathExpanderthat followstyperelationships in any direction. | 
| static <STATE> PathExpander<STATE> | forTypeAndDirection(RelationshipType type,
                   Direction direction) | 
| static <STATE> PathExpander<STATE> | forTypesAndDirections(RelationshipType type1,
                     Direction direction1,
                     RelationshipType type2,
                     Direction direction2,
                     Object... more) | 
| static <STATE> PathExpander<STATE> | printingWrapper(PathExpander<STATE> source)A wrapper that uses  Paths.DefaultPathDescriptorto print expanded paths. | 
| static <STATE> PathExpander<STATE> | printingWrapper(PathExpander<STATE> source,
               BiFunction<Path,BranchState,Boolean> pred)A wrapper that uses  Paths.DefaultPathDescriptorto print expanded paths that fulfillBiFunctionpredicate. | 
| static <STATE> PathExpander<STATE> | printingWrapper(PathExpander<STATE> source,
               BiFunction<Path,BranchState,Boolean> pred,
               Paths.PathDescriptor descriptor)A wrapper that uses  Paths.DefaultPathDescriptorto print expanded paths
 that fulfillBiFunctionpredicate using givenPaths.PathDescriptor. | 
| static <STATE> PathExpander<STATE> | printingWrapper(PathExpander<STATE> source,
               BiFunction<Path,BranchState,Boolean> pred,
               Paths.PathDescriptor descriptor,
               PrintStream out)A wrapper that uses  Paths.DefaultPathDescriptorto print expanded paths
 that fulfillBiFunctionpredicate using givenPaths.PathDescriptor. | 
| static <STATE> PathExpander<STATE> | printingWrapper(PathExpander<STATE> source,
               Paths.PathDescriptor descriptor)A wrapper that uses  Paths.DefaultPathDescriptorto print expanded paths
 using givenPaths.PathDescriptor. | 
public static <STATE> PathExpander<STATE> allTypesAndDirections()
PathExpander that follows any type in any direction.STATE - the type of the object that holds the statePathExpander that follows any type in any directionpublic static <STATE> PathExpander<STATE> forType(RelationshipType type)
PathExpander that follows type relationships in any direction.STATE - the type of the object that holds the statetype - the type of relationships to expand in any directionPathExpander that follows type relationships in any directionpublic static <STATE> PathExpander<STATE> forDirection(Direction direction)
PathExpander that follows any type in direction.STATE - the type of the object that holds the statedirection - the direction to follow relationships inPathExpander that follows any type in directionpublic static <STATE> PathExpander<STATE> forTypeAndDirection(RelationshipType type, Direction direction)
STATE - the type of the object that holds the statetype - the type of relationships to followdirection - the direction to follow relationships inPathExpander that follows type in directionpublic static <STATE> PathExpander<STATE> forTypesAndDirections(RelationshipType type1, Direction direction1, RelationshipType type2, Direction direction2, Object... more)
STATE - the type of the object that holds the statetype1 - the type of relationships to follow in direction1direction1 - the direction to follow type1 relationships intype2 - the type of relationships to follow in direction2direction2 - the direction to follow type2 relationships inmore - add more type/direction pairsPathExpander that follows only the type/direction pairs that you listpublic static <STATE> PathExpander<STATE> forConstantDirectionWithTypes(RelationshipType... types)
STATE - the type of the object that holds the statetypes - types of relationships to followPathExpander which enforces constant relationship directionpublic static <STATE> PathExpander<STATE> printingWrapper(PathExpander<STATE> source)
Paths.DefaultPathDescriptor to print expanded paths.
 All expanded paths will be printed using System.out.STATE - the type of the object that holds the statesource - PathExpander to wrap.PathExpander.public static <STATE> PathExpander<STATE> printingWrapper(PathExpander<STATE> source, BiFunction<Path,BranchState,Boolean> pred)
Paths.DefaultPathDescriptor
 to print expanded paths that fulfill BiFunction predicate.
 Will use System.out as PrintStream.STATE - the type of the object that holds the statesource - PathExpander to wrap.pred - BiFunction used as predicate for printing expansion.PathExpander.public static <STATE> PathExpander<STATE> printingWrapper(PathExpander<STATE> source, Paths.PathDescriptor descriptor)
Paths.DefaultPathDescriptor to print expanded paths
 using given Paths.PathDescriptor.
 All expanded paths will be printed.
 Will use System.out as PrintStream.STATE - the type of the object that holds the statesource - PathExpander to wrap.descriptor - Paths.PathDescriptor to use when printing paths.PathExpander.public static <STATE> PathExpander<STATE> printingWrapper(PathExpander<STATE> source, BiFunction<Path,BranchState,Boolean> pred, Paths.PathDescriptor descriptor)
Paths.DefaultPathDescriptor to print expanded paths
 that fulfill BiFunction predicate using given Paths.PathDescriptor.
 Will use System.out as PrintStream.STATE - the type of the object that holds the statesource - PathExpander to wrap.pred - BiFunction used as predicate for printing expansion.descriptor - Paths.PathDescriptor to use when printing paths.PathExpander.public static <STATE> PathExpander<STATE> printingWrapper(PathExpander<STATE> source, BiFunction<Path,BranchState,Boolean> pred, Paths.PathDescriptor descriptor, PrintStream out)
Paths.DefaultPathDescriptor to print expanded paths
 that fulfill BiFunction predicate using given Paths.PathDescriptor.STATE - the type of the object that holds the statesource - PathExpander to wrap.pred - BiFunction used as predicate for printing expansion.descriptor - Paths.PathDescriptor to use when printing paths.out - PrintStream to use for printing expanded pathsPathExpander.Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.