Class LinkExtractor.LinkIterator

  • All Implemented Interfaces:
    java.util.Iterator<LinkSpan>
    Enclosing class:
    LinkExtractor

    private class LinkExtractor.LinkIterator
    extends java.lang.Object
    implements java.util.Iterator<LinkSpan>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
      private java.lang.CharSequence input  
      private LinkSpan next  
      private int rewindIndex  
    • Constructor Summary

      Constructors 
      Constructor Description
      LinkIterator​(java.lang.CharSequence input)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      LinkSpan next()  
      void remove()  
      private void setNext()  
      • 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
    • Field Detail

      • input

        private final java.lang.CharSequence input
      • index

        private int index
      • rewindIndex

        private int rewindIndex
    • Constructor Detail

      • LinkIterator

        public LinkIterator​(java.lang.CharSequence input)
    • Method Detail

      • hasNext

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

        public LinkSpan next()
        Specified by:
        next in interface java.util.Iterator<LinkSpan>
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<LinkSpan>
      • setNext

        private void setNext()