I am trying to use java stream instead of forloop
ids.stream().map(AccountPermissionsUpdate::new)
I have created an other constructor, my question is: how to call the second constructor
new AccountPermissionsUpdate(id,true)
Thanks
public AccountPermissionsUpdate(long accountId) {
this.accountId = accountId;
}
public AccountPermissionsUpdate(long accountId, boolean forcedLogout) {
this.accountId = accountId;
this.forcedLogout = forcedLogout;
}