Basisklassen zum Modul jdk.httpserver
ulrich
2021-07-03 f9b15dc42ba641cefef8360e4bea6035d9f7e26e
commit | author | age
786e8c 1 /*
U 2   http-base - Extensions to jdk.httpserver
3   Copyright (C) 2021  Ulrich Hilger
4
5   This program is free software: you can redistribute it and/or modify
6   it under the terms of the GNU Affero General Public License as
7   published by the Free Software Foundation, either version 3 of the
8   License, or (at your option) any later version.
9
10   This program is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   GNU Affero General Public License for more details.
14
15   You should have received a copy of the GNU Affero General Public License
16   along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  */
18 package de.uhilger.httpserver.base;
19
20 /**
21  * Eine Range bezeichnet einen zusammenh&auml;ngenden Bereich 
22  * aus Bytes, der sich aus den Bytepositionen des Beginns und Endes 
23  * des Bereiches ergibt.
24  * 
25  * @author Ulrich Hilger
26  * @version 1, 11.06.2021
27  */
28 public class Range {
29     private long start;
30     private long end;
31
32     /**
33      * Den Beginn dieser Range ermitteln
34      *
35      * @return Beginn dieser Range
36      */
37     public long getStart() {
38       return start;
39     }
40
41     /**
42      * Den Beginn dieser Range angeben
43      *
44      * @param start Beginn dieser Range
45      */
46     public void setStart(long start) {
47       this.start = start;
48     }
49
50     /**
51      * Das Ende dieser Range ermitteln
52      *
53      * @return Ende dieser Range
54      */
55     public long getEnd() {
56       return end;
57     }
58
59     /**
60      * Das Ende dieser Range angeben
61      *
62      * @param end Ende dieser Range
63      */
64     public void setEnd(long end) {
65       this.end = end;
66     }
67 }