public static class SCMHeadObserver.Any extends SCMHeadObserver
SCMHeadObserver.AllFinished, SCMHeadObserver.Any, SCMHeadObserver.Collector, SCMHeadObserver.Filter<O extends SCMHeadObserver>, SCMHeadObserver.Named, SCMHeadObserver.None, SCMHeadObserver.OneFinished, SCMHeadObserver.Selector, SCMHeadObserver.Wrapped<O extends SCMHeadObserver>| Constructor and Description |
|---|
Any()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
SCMRevision |
getRevision()
Returns the result.
|
boolean |
isObserving()
Returns information about whether the observer wants more results.
|
void |
observe(SCMHead head,
SCMRevision revision)
Observes a head and current revision.
|
SCMRevision |
result()
Returns the result.
|
allOf, any, collect, filter, first, getIncludes, named, none, selectpublic SCMRevision getRevision()
@CheckForNull public SCMRevision result()
public void observe(@NonNull
SCMHead head,
@NonNull
SCMRevision revision)
observe in class SCMHeadObserverhead - the head.revision - the revision.public boolean isObserving()
isObserving in class SCMHeadObservertrue if the observer is still observing or false to signal that it is ok to stop early.Copyright © 2016–2019. All rights reserved.