public class CommentSourceImplementation extends Object implements UpdatableCommentSource
Constructor and Description |
---|
CommentSourceImplementation() |
Modifier and Type | Method and Description |
---|---|
void |
addComment(String comment)
Adds a comment to the underlying collection, so that the comment will be
returned as result of the next call to the
CommentSource.getComments().
|
String[] |
getComments()
Get the comments added by the user after the previous call to getComments()
up to now.
|
public void addComment(String comment)
UpdatableCommentSource
Implementations should be thread save (regarding concurrent calls to the CommentSource.getComments() method).
addComment
in interface UpdatableCommentSource
comment
- The comment-string to be added.#addComment(java.lang.String)
public String[] getComments()
getComments
in interface CommentSource
Copyright © 2000-2014. All Rights Reserved.