public void add ( int anInt ) { if ( tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "add" ) ; if ( tc . isDebugEnabled ( ) ) SibTr . debug ( tc , "Params: int" , anInt ) ; // Have we filled up the current array? if ( currentCursor == arraySize ) { // Stash it in the Vector allArrays . add ( current ) ; // Create a new one current = new int [ arraySize ] ; // Set the cursor at the beginning currentCursor = 0 ; } // Now add the element at the correct position current [ currentCursor ] = anInt ; // Move the cursor along currentCursor ++ ; // Increment the size elements ++ ; if ( tc . isEntryEnabled ( ) ) SibTr . exit ( tc , "add" ) ; }
Adds an int to the array .