public static IntArray getInstance ( int size , int bitCount , ByteOrder order ) { switch ( bitCount ) { case 8 : return getInstance ( new byte [ size ] , bitCount , order ) ; case 16 : return getInstance ( new byte [ 2 * size ] , bitCount , order ) ; case 32 : return new InArray ( size ) ; default : throw new UnsupportedOperationException ( bitCount + " not supported" ) ; } }
Creates IntArray of given length bitCount and byte - order