Coverage Summary for Class: Range (org.kitodo.production.beans)
Class |
Class, %
|
Method, %
|
Line, %
|
Range |
100%
(1/1)
|
100%
(5/5)
|
100%
(9/9)
|
/*
* (c) Kitodo. Key to digital objects e. V. <contact@kitodo.org>
*
* This file is part of the Kitodo project.
*
* It is licensed under GNU General Public License version 3 or later.
*
* For the full copyright and license information, please read the
* GPL3-License.txt file that was distributed with this source code.
*/
package org.kitodo.production.beans;
public class Range {
private final long start;
private final long end;
private final long length;
private final long total;
/**
* Construct a byte range.
*
* @param start
* Start of the byte range.
* @param end
* End of the byte range.
* @param total
* Total length of the byte source.
*/
public Range(long start, long end, long total) {
this.start = start;
this.end = end;
this.length = end - start + 1;
this.total = total;
}
public long getTotal() {
return total;
}
public long getLength() {
return length;
}
public long getEnd() {
return end;
}
public long getStart() {
return start;
}
}