Iterator¶
Definition¶
Extends¶
Extended By¶
None
Method Summary¶
Owner | Name | Return Type | Description |
---|---|---|---|
Object | getClassName() | String | Returns the string name of this object's class type. |
Iterator | hasNext() | Object | Returns "true" if there are more elements remaining in the iterator, i.e when next() returns an element, and "false" if not. |
Iterator | next() | Object | Returns the next value from the iterator |
Object | toJson() | String | Returns a string of a json representation of this object. |
Method Definitions¶
getClassName()¶
Description¶
Returns the string name of this object's class type.
Example 17¶
hasNext()¶
Description¶
Returns "true" if there are more elements remaining in the iterator, i.e when next() returns an element, and "false" if not.
Example 1¶
Where sets don't natively have a size() method, iterators can be used instead to determine the size of a set.
next()¶
Description¶
Returns the next value from the iterator
Example 1¶
toJson()¶
Description¶
Returns a string of a json representation of this object.