Couldn't you just do `return this.getName().equals(that.getName())` and leverage the built-in `List::equals` method?