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

develop.toolkit.base.struct.range.IntRange Maven / Gradle / Ivy

package develop.toolkit.base.struct.range;

/**
 * 整型范围
 */
public class IntRange extends Range {

    public IntRange(Integer start, Integer end) {
        super(start, end);
    }

    /**
     * 生成整型数组
     */
    public final Integer[] generate() {
        Integer[] array = new Integer[end - start];
        for (int i = 0; i < array.length; i++) {
            array[i] = start + i;
        }
        return array;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy