The gentrification of Brooklyn has been one of the most striking developments in recent urban history.