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

com.softicar.platform.common.core.i18n.key.computer.IndexRange Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.i18n.key.computer;

class IndexRange {

	private final int start;
	private final int end;

	public IndexRange(int start, int end) {

		this.start = start;
		this.end = end;
	}

	public int getStart() {

		return start;
	}

	public int getEnd() {

		return end;
	}

	public int getLength() {

		return end - start;
	}

	public IndexRange getShifted(int offset) {

		return new IndexRange(start + offset, end + offset);
	}

	@Override
	public String toString() {

		return "IndexRange [start=" + start + ", end=" + end + "]";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy