public static class SCMHeadObserver.Named extends SCMHeadObserver
SCMRevision of a named SCMHead and then stops observing.SCMHeadObserver.AllFinished, SCMHeadObserver.Any, SCMHeadObserver.Collector, SCMHeadObserver.Filter<O extends SCMHeadObserver>, SCMHeadObserver.Named, SCMHeadObserver.None, SCMHeadObserver.OneFinished, SCMHeadObserver.Selector, SCMHeadObserver.Wrapped<O extends SCMHeadObserver>| Modifier and Type | Method and Description |
|---|---|
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 Named(@NonNull
String head)
head - the SCMHead.getName() to get the SCMRevision of.@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.