Can anyone explain how this code snippet works... The actual code itself is not relevant as it was from a short tutorial on using an MVP pattern for Android.
My main question is how this code structure works and whether this is an inner class, of sorts, or maybe a transaction.. I haven't seen a code structure like this in Java and I would like to undertsand it to learn from it as it seems efficient and minimal.
public void loadCustomer(int id) {
(mCustomerModel.load(id)) {
mCustomerView.setId(mCustomerModel.getId());
mCustomerView.setFirstName(mCustomerModel.getFirstName());
mCustomerView.setLastName(mCustomerModel.getLastName());
}
}