public byte [ ] byteArrayValue ( final PrimitiveType type ) { if ( representation == Representation . BYTE_ARRAY ) { return byteArrayValue ; } else if ( representation == Representation . LONG && size == 1 && type == PrimitiveType . CHAR ) { byteArrayValueForLong [ 0 ] = ( byte ) longValue ; return byteArrayValueForLong ; } throw new IllegalStateException ( "PrimitiveValue is not a byte[] representation" ) ; }
Return byte array value for this PrimitiveValue given a particular type