@@ -10,8 +10,8 @@ public abstract class ComplianceRule {
10
10
private final List <Account > currentCompliantAccounts = new ArrayList <Account >();
11
11
12
12
/**
13
- *
14
- * @param account
13
+ * Adds the passed account to the list of non-compliant accounts.
14
+ * @param account The non-compliant account.
15
15
*/
16
16
public void addToNonCompliantAccounts (Account account ) {
17
17
if (currentNonCompliantAccounts .contains (account )) {
@@ -21,8 +21,8 @@ public void addToNonCompliantAccounts(Account account) {
21
21
}
22
22
23
23
/**
24
- *
25
- * @param account
24
+ * Adds the passed account to the list of compliant accounts.
25
+ * @param account The compliant account.
26
26
*/
27
27
public void addToCompliantAccounts (Account account ) {
28
28
if (currentCompliantAccounts .contains (account )) {
@@ -32,16 +32,25 @@ public void addToCompliantAccounts(Account account) {
32
32
}
33
33
34
34
/**
35
- *
36
- * @return
35
+ * Makes sure the passed account is not in any compliance list.
36
+ * @param account The account to remove from all compliance lists.
37
+ */
38
+ public void removeFromComplianceLists (Account account ) {
39
+ this .currentNonCompliantAccounts .remove (account );
40
+ this .currentCompliantAccounts .remove (account );
41
+ }
42
+
43
+ /**
44
+ * Returns the list of non-compliant accounts.
45
+ * @return The list of non-compliant accounts.
37
46
*/
38
47
public List <Account > getNonCompliantAccounts () {
39
48
return this .currentNonCompliantAccounts ;
40
49
}
41
50
42
51
/**
43
- *
44
- * @return
52
+ * Returns the list of compliant accounts.
53
+ * @return The list of compliant accounts.
45
54
*/
46
55
public List <Account > getCompliantAccounts () {
47
56
return this .currentCompliantAccounts ;
@@ -59,13 +68,4 @@ public void purgeAccounts() {
59
68
this .currentNonCompliantAccounts .clear ();
60
69
this .currentCompliantAccounts .clear ();
61
70
}
62
-
63
- /**
64
- *
65
- * @param account
66
- */
67
- public void removeFromComplianceLists (Account account ) {
68
- this .currentNonCompliantAccounts .remove (account );
69
- this .currentCompliantAccounts .remove (account );
70
- }
71
71
}
0 commit comments