File tree 5 files changed +9
-9
lines changed
main/java/com/iluwatar/caching
test/java/com/iluwatar/caching
money/src/main/java/com/iluwatar
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ package com.iluwatar.caching {
13
13
- LOGGER : Logger {static}
14
14
+ App ()
15
15
+ main(args : String[]) {static}
16
- + useCacheAsideStategy ()
16
+ + useCacheAsideStrategy ()
17
17
+ useReadAndWriteThroughStrategy ()
18
18
+ useReadThroughAndWriteAroundStrategy ()
19
19
+ useReadThroughAndWriteBehindStrategy ()
@@ -116,4 +116,4 @@ Node --> "-previous" Node
116
116
AppManager --> "- cachingPolicy " CachingPolicy
117
117
Node --> "- userAccount " UserAccount
118
118
CacheStore --> "- cache " LruCache
119
- @enduml
119
+ @enduml
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public static void main(final String[] args) {
133
133
LOGGER .info (splitLine );
134
134
app .useReadThroughAndWriteBehindStrategy ();
135
135
LOGGER .info (splitLine );
136
- app .useCacheAsideStategy ();
136
+ app .useCacheAsideStrategy ();
137
137
LOGGER .info (splitLine );
138
138
}
139
139
@@ -224,7 +224,7 @@ public void useReadThroughAndWriteBehindStrategy() {
224
224
/**
225
225
* Cache-Aside.
226
226
*/
227
- public void useCacheAsideStategy () {
227
+ public void useCacheAsideStrategy () {
228
228
LOGGER .info ("# CachingPolicy.ASIDE" );
229
229
appManager .initCachingPolicy (CachingPolicy .ASIDE );
230
230
LOGGER .info (appManager .printCacheContent ());
Original file line number Diff line number Diff line change @@ -68,6 +68,6 @@ void testReadThroughAndWriteBehindStrategy() {
68
68
@ Test
69
69
void testCacheAsideStrategy () {
70
70
assertNotNull (app );
71
- app .useCacheAsideStategy ();
71
+ app .useCacheAsideStrategy ();
72
72
}
73
73
}
Original file line number Diff line number Diff line change 1
1
package com .iluwatar ;
2
2
/**
3
- * An exception for when the user tries to subtract two diffrent currencies or subtract an amount he doesn't have.
3
+ * An exception for when the user tries to subtract two different currencies or subtract an amount he doesn't have.
4
4
*/
5
5
public class CannotSubtractException extends Exception {
6
6
/**
@@ -12,4 +12,4 @@ public CannotSubtractException(String message) {
12
12
super (message );
13
13
}
14
14
15
- }
15
+ }
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ package com.iluwatar.updatemethod {
20
20
- PATROLLING_RIGHT_BOUNDING : int {static}
21
21
# patrollingLeft : boolean
22
22
+ Skeleton(id : int)
23
- + Skeleton(id : int, postition : int)
23
+ + Skeleton(id : int, position : int)
24
24
+ update ()
25
25
}
26
26
class Statue {
@@ -48,4 +48,4 @@ package com.iluwatar.updatemethod {
48
48
World --> "- entities " Entity
49
49
Skeleton --|> Entity
50
50
Statue --|> Entity
51
- @enduml
51
+ @enduml
You can’t perform that action at this time.
0 commit comments