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

io.quarkus.panache.common.Range Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.panache.common;

/**
 * 

* Utility class to represent ranging information. Range instances are immutable. *

* *

* Usage: *

* *
 * Range range = Range.of(0, 5);
 * 
*/ public class Range { private final int startIndex; private final int lastIndex; public Range(int startIndex, int lastIndex) { this.startIndex = startIndex; this.lastIndex = lastIndex; } public static Range of(int startIndex, int lastIndex) { return new Range(startIndex, lastIndex); } public int getStartIndex() { return startIndex; } public int getLastIndex() { return lastIndex; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy