Skip to content

Commit f00d76e

Browse files
committed
Merge branch 'master' of https://github.com/alexsgi/JavaUtils
2 parents 9967a42 + a1789d8 commit f00d76e

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
23
# JavaUtils
34

45
[![](https://jitpack.io/v/alexsgi/java-utils.svg)](https://jitpack.io/#alexsgi/java-utils)
@@ -207,3 +208,38 @@ Important : the input file needs to be a directory !
207208
ParallelTask.runParallel(Runnable runnable, CommandCallback callback);
208209
```
209210
This creates a new thread and starts it.
211+
212+
---
213+
214+
**Create many threads with the same runnable** :
215+
```java
216+
MultiThreads.createThreads(Runnable runnable, int amountOfThreads);
217+
```
218+
Start all those Threads :
219+
```java
220+
MultiThreads.startThreads();
221+
```
222+
Interrupt all Threads :
223+
```java
224+
MultiThreads.interruptThreads();
225+
```
226+
Clear all Threads :
227+
```java
228+
MultiThreads.clearThreads();
229+
```
230+
Get current amount of Threads :
231+
```java
232+
int amount = MultiThreads.getThreadAmount();
233+
```
234+
---
235+
Some tools for Strings :
236+
237+
Check if a String contains **at least one** of the params :
238+
```java
239+
StringUtils.containsOneOf(String src, String... params);
240+
```
241+
Check if a String contains **all** of the params :
242+
```java
243+
StringUtils.containsAll(String src, String... params)
244+
```
245+
---

0 commit comments

Comments
 (0)