Class ZoneMembers
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.ZoneMembers
-
- All Implemented Interfaces:
Serializable,Iterator<AssetElement>
public class ZoneMembers extends Object implements Iterator<AssetElement>, Serializable
An iterator to walk through the list of assets assigned to a zone.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZoneMembers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()The iterator can only be used once to step through the elements.AssetElementnext()Return the next element in the iteration.voidremove()Remove the current element in the iterator.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
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<AssetElement>- Returns:
- boolean indicating whether there are more elements.
-
next
public AssetElement next()
Return the next element in the iteration.- Specified by:
nextin interfaceIterator<AssetElement>- Returns:
- 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<AssetElement>
-
-