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

sf.database.mapper.handle.RowLimit Maven / Gradle / Ivy

The newest version!
package sf.database.mapper.handle;

/**
 * @author Clinton Begin
 */
public class RowLimit {

    public static final int NO_ROW_OFFSET = 0;
    public static final int NO_ROW_LIMIT = Integer.MAX_VALUE;
    public static final RowLimit DEFAULT = new RowLimit();

    private final long offset;
    private final int limit;

    public RowLimit() {
        this.offset = NO_ROW_OFFSET;
        this.limit = NO_ROW_LIMIT;
    }

    public RowLimit(long offset, int limit) {
        this.offset = offset;
        this.limit = limit;
    }

    public long getOffset() {
        return offset;
    }

    public int getLimit() {
        return limit;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy