Class InteractiveSignedObjectIdSource
java.lang.Object
com.atlassian.bitbucket.scm.signed.InteractiveSignedObjectIdSource
- All Implemented Interfaces:
SignedObjectIdSource
SignedObjectIdSource
that you can add items to that blocks until a next item becomes available or
complete()
is called.- Since:
- 5.1
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InteractiveSignedObjectIdSource
public InteractiveSignedObjectIdSource()
-
-
Method Details
-
add
Adds an object ID to bereturned
by this source.- Parameters:
objectId
- the next object ID
-
complete
public void complete() -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceSignedObjectIdSource
- Returns:
true
if there are any more object IDs to be resolved.
-
next
- Specified by:
next
in interfaceSignedObjectIdSource
- Returns:
- the next object ID
-