@ SuppressWarnings ( "unchecked" ) @ Override public Vector < Integer > readVectorInt ( ) { log . debug ( "readVectorInt" ) ; int type = readInteger ( ) ; if ( ( type & 1 ) == 0 ) { return ( Vector < Integer > ) getReference ( type >> 1 ) ; } int len = type >> 1 ; Vector < Integer > array = new Vector < Integer > ( len ) ; storeReference ( array ) ; @ SuppressWarnings ( "unused" ) int ref2 = readInteger ( ) ; for ( int j = 0 ; j < len ; ++ j ) { array . add ( buf . getInt ( ) ) ; } return array ; }
Read Vector&lt ; Integer&gt ; object .