public abstract static class Equivalents.RuleBase<N extends Named> extends Object implements Equivalents.EquivalentWalker<Rule,N>
Rule
s togetherConstructor and Description |
---|
RuleBase() |
Modifier and Type | Method and Description |
---|---|
Rule |
next(Rule peer)
Gets the next unit, or null if none.
|
Rule |
previous(Rule peer)
Gets the previous unit, or null if none.
|
boolean |
walkAll()
Specifies whether we should walk all peers, or stop when a peer does not match.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
locate
public Rule previous(Rule peer)
Equivalents.EquivalentWalker
previous
in interface Equivalents.EquivalentWalker<Rule,N extends Named>
peer
- Find the unit previous to this one.public Rule next(Rule peer)
Equivalents.EquivalentWalker
next
in interface Equivalents.EquivalentWalker<Rule,N extends Named>
peer
- Find the unit after this one.public boolean walkAll()
Equivalents.EquivalentWalker
In other words, return true to evaluate all peers, even when null is returned from Equivalents.EquivalentWalker.locate(Object, Named)
, and
return false to stop walking (in that direction) once Equivalents.EquivalentWalker.locate(Object, Named)
returns null.
walkAll
in interface Equivalents.EquivalentWalker<Rule,N extends Named>
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.