Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何添加多个评估者?例如 -
TraversalDescription TRAVERSAL = Traversal.description() .breadthFirst() .evaluator(Evaluators.excludeStartPosition());
我也想补充
Evaluators.toDepth(2)
我该怎么做?
换句话说,我想创建一个评估者列表。
只需通过对 evaluator() 方法的另一个调用来添加评估器,例如:
TraversalDescription TRAVERSAL = Traversal.description() .breadthFirst() .evaluator(Evaluators.excludeStartPosition()) .evaluator(Evaluators.toDepth(2));