public static class SCMHeadObserver.Selector extends SCMHeadObserver
SCMRevision
of a specific 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 |
---|---|
Set<SCMHead> |
getIncludes()
|
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.
|
public Selector(@NonNull SCMHead head)
head
- the SCMHead
to get the SCMRevision
of.@CheckForNull public SCMRevision result()
public void observe(@NonNull SCMHead head, @NonNull SCMRevision revision)
observe
in class SCMHeadObserver
head
- the head.revision
- the revision.public boolean isObserving()
isObserving
in class SCMHeadObserver
true
if the observer is still observing or false
to signal that it is ok to stop early.public Set<SCMHead> getIncludes()
SCMHead
instances that this observer is interested in or null
if
interested in all SCMHead
instances.
Implementations should not assume that the SCMHeadObserver.getIncludes()
will be honoured.
This method is designed to provide a hint to SCMSource
implementations.
getIncludes
in class SCMHeadObserver
SCMHead
instances that this observer is interested in or null
.Copyright © 2016–2022. All rights reserved.