docs: updates to several patterns

This commit is contained in:
Ilkka Seppälä
2024-05-28 19:46:39 +03:00
parent 4652842c94
commit 584e949714
70 changed files with 347 additions and 479 deletions
+2 -4
View File
@@ -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
![Filterer](./etc/filterer.png "Filterer")
## Applicability
* Use when you need to filter a collection of objects dynamically based on different criteria.