FileDocCategorySizeDatePackage
XIntPool.javaAPI DocApache Xerces 3.0.11458Fri Sep 14 20:33:54 BST 2007org.apache.xerces.impl.xs.util

XIntPool

public final class XIntPool extends Object
xerces.internal
author
Henry Zongaro, IBM
version
$Id: XIntPool.java 446723 2006-09-15 20:37:45Z mrglavas $

Fields Summary
private static final short
POOL_SIZE
private static final XInt[]
fXIntPool
Constructors Summary
Methods Summary
public final XIntgetXInt(int value)


     
        for (int i = 0; i < POOL_SIZE; i++)
            fXIntPool[i] = new XInt(i);
    
        if (value >= 0 && value < fXIntPool.length)
            return fXIntPool[value];
        else
            return new XInt(value);