Class FilesystemLoadSaveManager.FileIterator

  • All Implemented Interfaces:
    Iterator<net.shibboleth.utilities.java.support.collection.Pair<String,​T>>
    Enclosing class:
    FilesystemLoadSaveManager<T extends XMLObject>

    private class FilesystemLoadSaveManager.FileIterator
    extends Object
    implements Iterator<net.shibboleth.utilities.java.support.collection.Pair<String,​T>>
    Iterator which provides lazy iteration over the managed files.
    • Field Detail

      • current

        private net.shibboleth.utilities.java.support.collection.Pair<String,​T extends XMLObject> current
        Current value to return from next().
    • Constructor Detail

      • FileIterator

        public FileIterator​(@Nonnull
                            Collection<String> filenames)
        Constructor.
        Parameters:
        filenames - Snapshot of filesystem keys at time of construction
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface Iterator<net.shibboleth.utilities.java.support.collection.Pair<String,​T extends XMLObject>>
      • next

        public net.shibboleth.utilities.java.support.collection.Pair<String,​T> next()
        Specified by:
        next in interface Iterator<net.shibboleth.utilities.java.support.collection.Pair<String,​T extends XMLObject>>
      • remove

        public void remove()
        Specified by:
        remove in interface Iterator<net.shibboleth.utilities.java.support.collection.Pair<String,​T extends XMLObject>>
      • getNext

        private net.shibboleth.utilities.java.support.collection.Pair<String,​T> getNext()
        Internal support to get the next item for iteration.
        Returns:
        the next item for iteration, or null if no more items