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

org.nutz.dao.util.cri.IntRange Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.dao.util.cri;

public class IntRange extends NumberRange {

	private static final long serialVersionUID = 1L;

	public IntRange(String name, int... ids) {
		super(name);
		this.not = false;
		if (ids != null) {
			this.ids = new long[ids.length];
			for (int i = 0; i < ids.length; i++)
				this.ids[i] = ids[i];
		} else {
			this.ids = null;
		}
	}

	public IntRange(String name, Integer[] ids) {
		super(name);
		this.not = false;
		if (ids != null) {
			this.ids = new long[ids.length];
			for (int i = 0; i < ids.length; i++)
				this.ids[i] = ids[i];
		} else {
			this.ids = null;
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy