org.apache.derby.iapi.util
Class ReuseFactory

java.lang.Object
  extended by org.apache.derby.iapi.util.ReuseFactory

public class ReuseFactory
extends java.lang.Object

Factory methods for reusable objects. So far, the objects allocated by this factory are all immutable. Any immutable object can be re-used. All the methods in this class are static.


Field Summary
private static java.lang.Integer FIFTY_TWO
           
private static java.lang.Integer MAXINT
           
private static java.lang.Integer MINUS_ONE
           
private static java.lang.Byte[] staticBytes
           
private static java.lang.Integer[] staticInts
           
private static java.lang.Long[] staticLongs
           
private static java.lang.Short[] staticShorts
           
private static byte[] staticZeroLenByteArray
           
private static java.lang.Integer TWENTY_THREE
           
 
Constructor Summary
private ReuseFactory()
          Private constructor so no instances can be made
 
Method Summary
static java.lang.Boolean getBoolean(boolean b)
           
static java.lang.Byte getByte(byte i)
           
static java.lang.Integer getInteger(int i)
           
static java.lang.Long getLong(long i)
           
static java.lang.Short getShort(short i)
           
static byte[] getZeroLenByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticInts

private static final java.lang.Integer[] staticInts

FIFTY_TWO

private static final java.lang.Integer FIFTY_TWO

TWENTY_THREE

private static final java.lang.Integer TWENTY_THREE

MAXINT

private static final java.lang.Integer MAXINT

MINUS_ONE

private static final java.lang.Integer MINUS_ONE

staticShorts

private static final java.lang.Short[] staticShorts

staticBytes

private static final java.lang.Byte[] staticBytes

staticLongs

private static final java.lang.Long[] staticLongs

staticZeroLenByteArray

private static final byte[] staticZeroLenByteArray
Constructor Detail

ReuseFactory

private ReuseFactory()
Private constructor so no instances can be made

Method Detail

getInteger

public static java.lang.Integer getInteger(int i)

getShort

public static java.lang.Short getShort(short i)

getByte

public static java.lang.Byte getByte(byte i)

getLong

public static java.lang.Long getLong(long i)

getBoolean

public static java.lang.Boolean getBoolean(boolean b)

getZeroLenByteArray

public static byte[] getZeroLenByteArray()

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.