Code example for DataBufferFloat

      case DataBuffer.TYPE_USHORT:
	return new DataBufferUShort(size, numBanks);
      case DataBuffer.TYPE_INT:
	return new DataBufferInt(size, numBanks);
      case DataBuffer.TYPE_FLOAT:
	return new DataBufferFloat(size, numBanks);
      case DataBuffer.TYPE_DOUBLE:
	return new DataBufferDouble(size, numBanks);
	throw new UnsupportedOperationException();
   * Create a data buffer of a particular type. 
   * @param dataType the desired data type of the buffer 
   * @param data an array containing the data 
   * @param size the size of the data buffer bank 
Connect your IDE to all the code out there  Get Codota for Java