Class CommentReplies
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.PropertyIteratorBase
org.odpi.openmetadata.frameworks.connectors.properties.CommentReplies
- All Implemented Interfaces:
Iterator<CommentConversation>
public abstract class CommentReplies
extends PropertyIteratorBase
implements Iterator<CommentConversation>
CommentReplies supports an iterator over a list of Comment objects. Callers can use it to step through the list
just once. If they want to parse the list again, they could use the copy/clone constructor to create
a new iterator.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionCommentReplies(int maxCacheSize) Typical Constructor creates an iterator with the supplied list of elements.CommentReplies(CommentReplies template) Copy/clone constructor. -
Method Summary
Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
equals, getHeaderVersion, hashCode, setHeaderVersionMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
CommentReplies
public CommentReplies(int maxCacheSize) Typical Constructor creates an iterator with the supplied list of elements.- Parameters:
maxCacheSize- maximum number of elements that should be retrieved from the property server and cached in the element list at any one time. If a number less than one is supplied, 1 is used.
-
CommentReplies
Copy/clone constructor. Used to reset iterator element pointer to 0;- Parameters:
template- type-specific iterator to copy; null to create an empty iterator
-
-
Method Details
-
hasNext
public boolean hasNext()The iterator can only be used once to step through the elements. This method returns a boolean to indicate if it has got to the end of the list yet.- Specified by:
hasNextin interfaceIterator<CommentConversation>- Returns:
- boolean indicating whether there are more elements.
-
next
Return the next element in the iteration.- Specified by:
nextin interfaceIterator<CommentConversation>- Returns:
- Comment next element object that has been cloned.
-
remove
public void remove()Remove the current element in the iterator. (Null implementation since this iterator works off of cached elements from the property (metadata) server.)- Specified by:
removein interfaceIterator<CommentConversation>
-
toString
Standard toString method.
-