public short [ ] toShortArray ( ) { short [ ] values = new short [ _size ] ; for ( int ii = 0 ; ii < _size ; ii ++ ) { values [ ii ] = ( short ) _values [ ii ] ; } return values ; }
Creates an array of shorts from the contents of this set . Any values outside the range of a short will be truncated by way of a cast .