mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-08 10:13:05 +00:00
docs: update monitor
This commit is contained in:
1 parent
bf6456ba69
commit
36a9eea769
2 files changed
+119
-59
No files matched your search
@@ -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