Class AbstractBoundaryReadHandler3D.FacetDefinitionReaderIterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int loadCount
      Number of facets read from the reader.
      private FacetDefinition next
      Next facet to return from the instance; may be null.
      private FacetDefinitionReader reader
      Reader supplying the facets for iteration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void ensureLoaded()
      Ensure that the instance has attempted to load at least one facet from the underlying reader.
      boolean hasNext()
      private void loadNext()
      Load the next facet from the underlying reader.
      FacetDefinition next()
      • 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, remove
    • Field Detail

      • loadCount

        private int loadCount
        Number of facets read from the reader.
      • next

        private FacetDefinition next
        Next facet to return from the instance; may be null.
    • Constructor Detail

      • FacetDefinitionReaderIterator

        FacetDefinitionReaderIterator​(FacetDefinitionReader reader)
        Construct a new iterator instance that iterates through the facets available from the argument.
        Parameters:
        reader - read supplying facets for iteration
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<FacetDefinition>
      • ensureLoaded

        private void ensureLoaded()
        Ensure that the instance has attempted to load at least one facet from the underlying reader.
      • loadNext

        private void loadNext()
        Load the next facet from the underlying reader.