You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-1Lines changed: 64 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,69 @@
9
9
10
10
A library to help with JRE stuff like `shutdownhooks` or reading resources.
11
11
12
+
13
+
14
+
## Collections
15
+
16
+
This package contains several collections I've come across and used in some programs.
17
+
18
+
### DataQueue
19
+
20
+
A synchronized, size-limited FIFO-queue.
21
+
22
+
### SizeLimitedHashMap
23
+
24
+
A normal HashMap, but limited in size.
25
+
If there is a size-overflow, the oldest value will be discarded.
26
+
27
+
### DataMap
28
+
29
+
A synchronized, size-limited HashMap.
30
+
31
+
### DataTable
32
+
33
+
This is a data-structure that holds arbitrary objects in a DataQueue and you may or may not add one or many `indexes`, which will generate a DataMap for each index, using the given keySupplier to generate the key for each entry.
34
+
35
+
When you add a new element, delete an element or clear the list, all indexes will be automatically equally affected.
36
+
37
+
The indexes use minimal memory, since the references to the corresponding values is shared.
String value = dbf.read() // is equal to "test_new"
62
+
dbf.delete();
63
+
```
64
+
65
+
The above example generates two files: `new1.txt` and `new2.txt` and the accessors always give the correct file-handle to read or write-to.
66
+
67
+
68
+
69
+
## DateUtils
70
+
71
+
Offers some often used date-time conversions including UTC and ISO8601.
72
+
73
+
74
+
12
75
## ForName
13
76
14
77
This helps you to load and instantiate classes that haven't already been loaded using a given class-loader. This is of great help to strip boilerplate code when doing stuff like plugin-systems or the like.
@@ -26,7 +89,7 @@ The special thing about these is, that they work in JAR-files AND server-deploym
26
89
## ShutdownHook
27
90
28
91
If you'd like some code running before the Java-VM shuts down, then this is the way to go.
29
-
I use it shutting down the EntityManagerFactory for some programs as gracefully as it gets.
92
+
I use it for shutting down the EntityManagerFactory in some programs as gracefully as it gets.
0 commit comments