| MutableInteger.java |
1 /*
2 * MutableInteger.java - A mutable wrapper for int, so you can return
3 * integer values via a method parameter
4 *
5 * Copyright (c) 1998-2004, The University of Sheffield.
6 *
7 * This file is part of GATE (see http://gate.ac.uk/), and is free
8 * software, licenced under the GNU Library General Public License,
9 * Version 2, June 1991 (in the distribution as file licence.html,
10 * and also available at http://gate.ac.uk/gate/licence.html).
11 *
12 * Hamish Cunningham, 24/07/98
13 *
14 * $Id: MutableInteger.java,v 1.6 2004/07/21 17:10:08 akshay Exp $
15 */
16
17
18 package gate.jape;
19
20 /**
21 * A mutable wrapper for int, so you can return
22 * integer values via a method parameter. If public data members bother you
23 * I suggest you get a hobby, or have more sex or something.
24 */
25 public class MutableInteger implements java.io.Serializable
26 {
27 /** Debug flag */
28 private static final boolean DEBUG = false;
29
30 public int value = 0;
31
32 } // class MutableInteger
33
34