📄 Update year in copyright line
[jSite.git] / src / main / java / de / todesbaum / util / freenet / fcp2 / Verbosity.java
1 /*
2  * jSite - Verbosity.java - Copyright Â© 2006–2019 David Roden
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18
19 package de.todesbaum.util.freenet.fcp2;
20
21 /**
22  * @author David Roden <droden@gmail.com>
23  * @version $Id$
24  */
25 public final class Verbosity {
26
27         public static final Verbosity PROGRESS = new Verbosity(1);
28         public static final Verbosity COMPRESSION = new Verbosity(512);
29
30         public static final Verbosity NONE = new Verbosity(0);
31         public static final Verbosity ALL = new Verbosity(PROGRESS, COMPRESSION);
32
33         private final int value;
34
35         private Verbosity(int value) {
36                 this.value = value;
37         }
38
39         private Verbosity(Verbosity verbosity1, Verbosity verbosity2) {
40                 this(verbosity1.value | verbosity2.value);
41         }
42
43         /**
44          * @return Returns the value.
45          */
46         public int getValue() {
47                 return value;
48         }
49
50 }