org.apache.derby.iapi.util
Class ReuseFactory
java.lang.Object
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.
Constructor Summary |
private |
ReuseFactory()
Private constructor so no instances can be made |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ReuseFactory
private ReuseFactory()
- Private constructor so no instances can be made
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()
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.