• Java Scala Есть же разница

    public class CalculatedRoleDifference{
    public List<String> getAddedRoles() {
    return addedRoles;
    }
    public List<String> getRemovedRoles() {
    return removedRoles;
    }
    private final List<String> addedRoles;
    private final List<String> removedRoles;
    public CalculatedRoleDifference(List<String> addedRoles,List<String> removedRoles){
    this.addedRoles = addedRoles;
    this.removedRoles = removedRoles;
    }
    }

    против

    case class CalculatedRoleDifference(addedRoles List<String>, removedRoles List<String>)

Replies (4)