mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-20 07:26:49 +00:00
docs: update monitor
This commit is contained in:
@@ -48,12 +48,14 @@
|
||||
package com.iluwatar.monitor;
|
||||
|
||||
import java.util.Arrays;
|
||||
import lombok.Getter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
/** Bank Definition. */
|
||||
@Slf4j
|
||||
public class Bank {
|
||||
|
||||
@Getter
|
||||
private final int[] accounts;
|
||||
|
||||
/**
|
||||
@@ -113,13 +115,4 @@ public class Bank {
|
||||
public synchronized int getBalance(int accountNumber) {
|
||||
return accounts[accountNumber];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all accounts.
|
||||
*
|
||||
* @return accounts
|
||||
*/
|
||||
public int[] getAccounts() {
|
||||
return accounts;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user