org.multijava.util
Class VectorCache
java.lang.Object
org.multijava.util.VectorCache
- public class VectorCache
- extends java.lang.Object
This class implements a cache of char arrays
|
Field Summary |
static int |
BIG
|
private static java.util.Stack |
bigs
|
static int |
SMALL
|
private static java.util.Stack |
smalls
|
|
Method Summary |
static void |
release(java.util.Vector vector)
Releases a char array. |
static java.util.Vector |
request(int size)
Returns a char array. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMALL
public static final int SMALL
BIG
public static final int BIG
smalls
private static java.util.Stack smalls
bigs
private static java.util.Stack bigs
VectorCache
public VectorCache()
request
public static java.util.Vector request(int size)
- Returns a char array.
release
public static void release(java.util.Vector vector)
- Releases a char array.
mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.