All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.mvel2.templates.util.CountIterator Maven / Gradle / Ivy

Go to download

MVEL is a powerful expression language for Java-based applications. It provides a plethora of features and is suited for everything from the smallest property binding and extraction, to full blown scripts.

There is a newer version: 2.1.9-MULE-019
Show newest version
package org.mule.mvel2.templates.util;

import java.util.Iterator;

/**
 * User: christopherbrock
 * Date: 10-Aug-2010
 * Time: 6:42:20 PM
 */
public class CountIterator implements Iterator {
  int cursor;
  int countTo;

  public CountIterator(int countTo) {
    this.countTo = countTo;
  }

  public boolean hasNext() {
    return cursor < countTo;
  }

  public Object next() {
    return cursor++;
  }

  public void remove() {
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy