I would probably do "newBand.setX(band.getX)" without assigning it to a temp var if not needed by other methods.