public class

InteractiveSignedObjectIdSource

extends Object
implements SignedObjectIdSource
java.lang.Object
   ↳ com.atlassian.bitbucket.scm.signed.InteractiveSignedObjectIdSource

Class Overview

SignedObjectIdSource that you can add items to that blocks until a next item becomes available or complete() is called.

Summary

Public Constructors
InteractiveSignedObjectIdSource()
Public Methods
void add(String objectId)
Adds an object ID to be returned by this source.
void complete()
Marks the source as complete.
boolean hasNext()
@Nonnull String next()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.scm.signed.SignedObjectIdSource

Public Constructors

public InteractiveSignedObjectIdSource ()

Public Methods

public void add (String objectId)

Adds an object ID to be returned by this source.

Parameters
objectId the next object ID

public void complete ()

Marks the source as complete. After this method is called, hasNext() will return false after all previously added object IDs have been returned.

public boolean hasNext ()

@Nonnull public String next ()