public boolean hasNext() {
        return pos < bufferObject.regions.size();
    }
An helper class that iterates and merges dirty regions

@author Riccardo Balbo
jme3-core/src/main/java/com/jme3/shader/bufferobject/DirtyRegionsIterator.java