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

org.lambda.utils.Range Maven / Gradle / Ivy

There is a newer version: 24.9.0
Show newest version
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