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 bereturnedby this source.- Parameters:
objectId- the next object ID
-
complete
public void complete() -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceSignedObjectIdSource- Returns:
trueif there are any more object IDs to be resolved.
-
next
- Specified by:
nextin interfaceSignedObjectIdSource- Returns:
- the next object ID
-