public void fillInBaseValues(long base,boolean useNulls){
  final int maxCollectionSize=100;
  aChar=(char)base;
  aBoolean=true;
  aByte=(byte)base;
  aShort=(short)base;
  anInt=(int)base;
  aLong=base;
  aFloat=base;
  aDouble=base;
  aDate=new Date(base);
  aString="" + base;
  if (useNulls) {
    aDate=null;
    aString=null;
    anObject=null;
    aMap=null;
    aCollection=null;
    aBooleanArray=null;
    aCharArray=null;
    aByteArray=null;
    aShortArray=null;
    anIntArray=null;
    aLongArray=null;
    aFloatArray=null;
    aDoubleArray=null;
    anObjectArray=null;
    anArrayOfByteArray=null;
  }
 else {
    int desiredCollectionSize=(int)Math.min(base,maxCollectionSize);
    anObject=new SimpleClass((int)base,(byte)base);
    aMap=new HashMap();
    aCollection=new ArrayList();
    aBooleanArray=new boolean[desiredCollectionSize];
    aCharArray=new char[desiredCollectionSize];
    aByteArray=new byte[desiredCollectionSize];
    aShortArray=new short[desiredCollectionSize];
    anIntArray=new int[desiredCollectionSize];
    aLongArray=new long[desiredCollectionSize];
    aFloatArray=new float[desiredCollectionSize];
    aDoubleArray=new double[desiredCollectionSize];
    aStringArray=new String[desiredCollectionSize];
    anObjectArray=new Object[desiredCollectionSize];
    anArrayOfByteArray=new byte[desiredCollectionSize][desiredCollectionSize];
    if (desiredCollectionSize > 0) {
      for (int i=0; i < desiredCollectionSize - 1; i++) {
        aMap.put(i,i);
        aCollection.add(i);
        aBooleanArray[i]=(i % 2) == 0;
        aCharArray[i]=(char)(i);
        aByteArray[i]=(byte)(i);
        aShortArray[i]=(short)i;
        anIntArray[i]=i;
        aLongArray[i]=i;
        aFloatArray[i]=i;
        aDoubleArray[i]=i;
        aStringArray[i]="" + i;
        anObjectArray[i]=anObject;
        anArrayOfByteArray[i]=aByteArray;
      }
      aMap.put(base,base);
      aCollection.add(base);
      aBooleanArray[desiredCollectionSize - 1]=true;
      aCharArray[desiredCollectionSize - 1]=(char)base;
      aByteArray[desiredCollectionSize - 1]=(byte)base;
      aShortArray[desiredCollectionSize - 1]=(short)base;
      anIntArray[desiredCollectionSize - 1]=(int)base;
      aLongArray[desiredCollectionSize - 1]=base;
      aFloatArray[desiredCollectionSize - 1]=base;
      aDoubleArray[desiredCollectionSize - 1]=base;
      aStringArray[desiredCollectionSize - 1]="" + base;
      anObjectArray[desiredCollectionSize - 1]=anObject;
    }
  }
}

public void fillInBaseValues ( long base , boolean useNulls ) { final int maxCollectionSize = 100 ; aChar = ( char ) base ; aBoolean = true ; aByte = ( byte ) base ; aShort = ( short ) base ; anInt = ( int ) base ; aLong = base ; aFloat = base ; aDouble = base ; aDate = new Date ( base ) ; aString = "" + base ; if ( useNulls ) { aDate = null ; aString = null ; anObject = null ; aMap = null ; aCollection = null ; aBooleanArray = null ; aCharArray = null ; aByteArray = null ; aShortArray = null ; anIntArray = null ; aLongArray = null ; aFloatArray = null ; aDoubleArray = null ; anObjectArray = null ; anArrayOfByteArray = null ; } else { int desiredCollectionSize = ( int ) Math . min ( base , maxCollectionSize ) ; anObject = new SimpleClass ( ( int ) base , ( byte ) base ) ; aMap = new HashMap ( ) ; aCollection = new ArrayList ( ) ; aBooleanArray = new boolean [ desiredCollectionSize ] ; aCharArray = new char [ desiredCollectionSize ] ; aByteArray = new byte [ desiredCollectionSize ] ; aShortArray = new short [ desiredCollectionSize ] ; anIntArray = new int [ desiredCollectionSize ] ; aLongArray = new long [ desiredCollectionSize ] ; aFloatArray = new float [ desiredCollectionSize ] ; aDoubleArray = new double [ desiredCollectionSize ] ; aStringArray = new String [ desiredCollectionSize ] ; anObjectArray = new Object [ desiredCollectionSize ] ; anArrayOfByteArray = new byte [ desiredCollectionSize ] [ desiredCollectionSize ] ; if ( desiredCollectionSize > 0 ) { for ( int i = 0 ; i < desiredCollectionSize - 1 ; i ++ ) { aMap . put ( i , i ) ; aCollection . add ( i ) ; aBooleanArray [ i ] = ( i % 2 ) == 0 ; aCharArray [ i ] = ( char ) ( i ) ; aByteArray [ i ] = ( byte ) ( i ) ; aShortArray [ i ] = ( short ) i ; anIntArray [ i ] = i ; aLongArray [ i ] = i ; aFloatArray [ i ] = i ; aDoubleArray [ i ] = i ; aStringArray [ i ] = "" + i ; anObjectArray [ i ] = anObject ; anArrayOfByteArray [ i ] = aByteArray ; } aMap . put ( base , base ) ; aCollection . add ( base ) ; aBooleanArray [ desiredCollectionSize - 1 ] = true ; aCharArray [ desiredCollectionSize - 1 ] = ( char ) base ; aByteArray [ desiredCollectionSize - 1 ] = ( byte ) base ; aShortArray [ desiredCollectionSize - 1 ] = ( short ) base ; anIntArray [ desiredCollectionSize - 1 ] = ( int ) base ; aLongArray [ desiredCollectionSize - 1 ] = base ; aFloatArray [ desiredCollectionSize - 1 ] = base ; aDoubleArray [ desiredCollectionSize - 1 ] = base ; aStringArray [ desiredCollectionSize - 1 ] = "" + base ; anObjectArray [ desiredCollectionSize - 1 ] = anObject ; } } }
init fields using base as appropriate , but does not initialize aqueryobject field .
