I have some library of classes, working with my data, which is being read into buffer. Is it possible somehow to avoid copying arrays again and again, passing parts of data
Arrays.asList(array).subList(x, y).
This method doesn't give you an array, but a List, which is far more flexible.
List