Class IteratorWrapper<DEST,​SRC>

  • All Implemented Interfaces:
    java.util.Iterator<DEST>
    Direct Known Subclasses:
    GenericMap.GenericMapIterator

    public abstract class IteratorWrapper<DEST,​SRC>
    extends java.lang.Object
    implements java.util.Iterator<DEST>
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected IteratorWrapper​(java.util.Iterator<? extends SRC> it)  
    • Constructor Detail

      • IteratorWrapper

        protected IteratorWrapper​(java.util.Iterator<? extends SRC> it)
    • Method Detail

      • hasNext

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

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

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

        protected boolean isValid​(SRC src,
                                  DEST dest)
      • noteRemoval

        protected abstract void noteRemoval​(DEST dest,
                                            SRC src)
      • convert

        protected abstract DEST convert​(SRC src)