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:
  • Constructor Details

    • ZoneMembers

      public ZoneMembers()
  • 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:
      hasNext in interface Iterator<AssetElement>
      Returns:
      boolean indicating whether there are more elements.
    • next

      public AssetElement next()
      Return the next element in the iteration.
      Specified by:
      next in interface Iterator<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:
      remove in interface Iterator<AssetElement>