org.lambda.utils.Range Maven / Gradle / Ivy
package org.lambda.utils;
import org.lambda.query.Queryable;
import java.util.ArrayList;
public class Range
{
public static Integer[] get(int start, int stop)
{
ArrayList a = new ArrayList();
for (int i = start; i <= stop; i++)
{
a.add(i);
}
return (Integer[]) a.toArray(new Integer[a.size()]);
}
public static Queryable getAsQueryable(int start, int stop)
{
return Queryable.as(get(start, stop));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy