reformated java style
use of IntPredicate in order to test if copy should proceed