public class DefaultTraversalStrategies extends Object implements TraversalStrategies
TraversalStrategies.GlobalCache| Modifier and Type | Field and Description | 
|---|---|
| protected Set<TraversalStrategy<?>> | traversalStrategies | 
STRATEGY_CATEGORIES| Constructor and Description | 
|---|
| DefaultTraversalStrategies() | 
| Modifier and Type | Method and Description | 
|---|---|
| TraversalStrategies | addStrategies(TraversalStrategy<?>... strategies)Add all the provided  TraversalStrategyinstances to the current collection. | 
| void | applyStrategies(Traversal.Admin<?,?> traversal)Apply all the  TraversalStrategyoptimizers to theTraversal. | 
| DefaultTraversalStrategies | clone() | 
| <T extends TraversalStrategy> | getStrategy(Class<T> traversalStrategyClass)Return the  TraversalStrategyinstance associated with the provided class. | 
| TraversalStrategies | removeStrategies(Class<? extends TraversalStrategy>... strategyClasses)Remove all the provided  TraversalStrategyclasses from the current collection. | 
| List<TraversalStrategy<?>> | toList()Return all the  TraversalStrategysingleton instances associated with thisTraversalStrategies. | 
| String | toString() | 
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsortStrategies, visitprotected Set<TraversalStrategy<?>> traversalStrategies
public TraversalStrategies addStrategies(TraversalStrategy<?>... strategies)
TraversalStrategiesTraversalStrategy instances to the current collection.
 When all the provided strategies have been added, the collection is resorted.addStrategies in interface TraversalStrategiesstrategies - the traversal strategies to addpublic TraversalStrategies removeStrategies(Class<? extends TraversalStrategy>... strategyClasses)
TraversalStrategiesTraversalStrategy classes from the current collection.
 When all the provided strategies have been removed, the collection is resorted.removeStrategies in interface TraversalStrategiesstrategyClasses - the traversal strategies to remove by their classpublic List<TraversalStrategy<?>> toList()
TraversalStrategiesTraversalStrategy singleton instances associated with this TraversalStrategies.toList in interface TraversalStrategiespublic <T extends TraversalStrategy> Optional<T> getStrategy(Class<T> traversalStrategyClass)
TraversalStrategiesTraversalStrategy instance associated with the provided class.getStrategy in interface TraversalStrategiesT - the strategy class typetraversalStrategyClass - the class of the strategy to getpublic void applyStrategies(Traversal.Admin<?,?> traversal)
TraversalStrategiesTraversalStrategy optimizers to the Traversal. This method must ensure that the
 strategies are sorted prior to application.applyStrategies in interface TraversalStrategiestraversal - the traversal to apply the strategies topublic DefaultTraversalStrategies clone()
clone in interface TraversalStrategiesclone in class ObjectCopyright © 2013–2019 Apache Software Foundation. All rights reserved.