FileDocCategorySizeDatePackage
IntegerFactory.javaAPI DocAndroid 1.5 API1672Wed May 06 22:41:16 BST 2009com.vladium.util

IntegerFactory

public abstract class IntegerFactory extends Object
author
Vlad Roubtsov, (C) 2003

Fields Summary
private static final IntObjectMap
s_values
Constructors Summary
private IntegerFactory()

Methods Summary
public static java.lang.IntegergetInteger(int value)

        synchronized (s_values)
        {
            final Object _result = s_values.get (value);
            
            if (_result == null)
            {
                final Integer result = new Integer (value);
                s_values.put (value, result);
                
                return result; 
            }
            
            return (Integer) _result;
        }