org.nutz.dao.util.cri.IntRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
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;
}
}
}