3 * Copyright (C) 2006 David Roden
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
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 General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 package de.todesbaum.util.freenet.fcp2;
23 * @author David Roden <droden@gmail.com>
24 * @version $Id: PriorityClass.java 356 2006-03-24 15:13:38Z bombe $
26 public final class PriorityClass {
28 public static final PriorityClass MAXIMUM = new PriorityClass("maximum", 0);
29 public static final PriorityClass INTERACTIVE = new PriorityClass("interactive", 1);
30 public static final PriorityClass SEMI_INTERACTIVE = new PriorityClass("semiInteractive", 2);
31 public static final PriorityClass UPDATABLE = new PriorityClass("updatable", 3);
32 public static final PriorityClass BULK = new PriorityClass("bulk", 4);
33 public static final PriorityClass PREFETCH = new PriorityClass("prefetch", 5);
34 public static final PriorityClass MINIMUM = new PriorityClass("minimum", 6);
39 private PriorityClass(String name, int value) {
45 * @return Returns the name.
47 public String getName() {
52 * @return Returns the value.
54 public int getValue() {