Package com.google.gerrit.server.account
Interface AccountsUpdate.ConfigureDeltaFromState
-
- Enclosing class:
- AccountsUpdate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface AccountsUpdate.ConfigureDeltaFromState
Account updates are commonly performed by evaluating the current account state and creating a delta to be applied to it in a later step. This is done by implementing this interface.If the current account state is not needed, use a
Consumer
ofAccountDelta.Builder
instead.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(AccountState accountState, AccountDelta.Builder delta)
Receives the currentAccountState
(which is immutable) and configures anAccountDelta.Builder
with changes to the account.
-
-
-
Method Detail
-
configure
void configure(AccountState accountState, AccountDelta.Builder delta) throws IOException
Receives the currentAccountState
(which is immutable) and configures anAccountDelta.Builder
with changes to the account.- Parameters:
accountState
- the state of the account that is being updateddelta
- the changes to be applied- Throws:
IOException
-
-