![JAR search and dependency download from the Maven repository](/logo.png)
org.mvel2.templates.util.CountIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tbel Show documentation
Show all versions of tbel Show documentation
TBEL is a powerful expression language for ThingsBoard platform user-defined functions.
Original implementation is based on MVEL.
package org.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