FileDocCategorySizeDatePackage
XIntPool.javaAPI DocJava SE 6 API1269Tue Jun 10 00:22:48 BST 2008com.sun.org.apache.xerces.internal.impl.xs.util

XIntPool

public final class XIntPool extends Object
xerces.internal
author
Henry Zongaro, IBM
version
$Id: XIntPool.java,v 1.2.6.1 2005/09/09 07:28:11 sunithareddy Exp $

Fields Summary
private static final short
POOL_SIZE
private static final XInt[]
fXIntPool
Constructors Summary
Methods Summary
public final com.sun.org.apache.xerces.internal.impl.xs.util.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);