component/src/main/java/org/wso2/extension/siddhi/execution/extrema/util/DoublyLinkedList.java
@Override
        public T next() {
            if (length != list.size) {
                throw new ConcurrentModificationException();
            }
            T next = nextItrNode.getValue();
            nextItrNode = nextItrNode.getNextNode();
            return next;
        }
/**
         * Get the next value in the iterator
         *
         * @return Next value
         */
Get the next value in the iterator
@return Next value
Get the next value in the iterator @return Next value
@Override
        public T next() {
            if (length != list.size) {
                throw new ConcurrentModificationException();
            }
            T next = nextItrNode.getValue();
            nextItrNode = nextItrNode.getNextNode();
            return next;
        }
@ Override public T next ( ) { if ( length != list . size ) { throw new ConcurrentModificationException ( ) ; } T next = nextItrNode . getValue ( ) ; nextItrNode = nextItrNode . getNextNode ( ) ; return next ; }
Get the next value in the iterator
 @return Next value
Get the next value in the iterator @return Next value