mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 20:15:47 +00:00
docs: updates to several patterns
This commit is contained in:
1 parent
4652842c94
commit
584e949714
70 files changed
+347
-479
No files matched your search
+2
-4
@@ -43,7 +43,9 @@ public interface Threat {
|
||||
int id();
|
||||
ThreatType type();
|
||||
}
|
||||
```
|
||||
|
||||
```java
|
||||
public interface ThreatAwareSystem {
|
||||
String systemId();
|
||||
List<? extends Threat> threats();
|
||||
@@ -222,10 +224,6 @@ Running the example produces the following console output.
|
||||
08:33:23.581 [main] INFO com.iluwatar.filterer.App -- Filtered by probability = 0.99 : SimpleProbabilisticThreatAwareSystem(systemId=Sys-1, threats=[SimpleProbableThreat{probability=0.99} SimpleThreat(threatType=TROJAN, id=1, name=Trojan-ArcBomb)])
|
||||
```
|
||||
|
||||
## Class diagram
|
||||
|
||||

|
||||
|
||||
## Applicability
|
||||
|
||||
* Use when you need to filter a collection of objects dynamically based on different criteria.
|
||||
|
||||
Reference in new issue
Block a user