public abstract static class Equivalents.Base<G extends Groupable<?,G>,N extends Named> extends Object implements Equivalents.EquivalentWalker<G,N>
Constructor and Description |
---|
Base() |
Modifier and Type | Method and Description |
---|---|
G |
next(G peer)
Gets the next unit, or null if none.
|
G |
previous(G 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 G previous(G peer)
Equivalents.EquivalentWalker
public G next(G peer)
Equivalents.EquivalentWalker
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.
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.