public Object get ( int idx ) { int index = idx & 0xff ; if ( isEmpty ( ) ) { // System.err.println("index "+index+" is invalid as stack is empty"); return null ; } else if ( index < 0 || index >= size ) { // System.err.println("index "+index+" is outside of range [0,"+(size-1)+"]"); return null ; } return objects [ index ] ; }
Gets the object at the given index in the catalog .