It would make sense to explain in the javadoc here that the values buffer will be copied before being stored.