public class ListUtils
extends java.lang.Object
| Constructor and Description |
|---|
ListUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List |
getRandomEntries(java.util.List list,
int random)
Returns an amount of random Entries from
a List without returning any Entries more
than once
|
static java.lang.String |
toString(int excluded,
java.lang.String... list)
Forms the String Array into a normal sentence with Spaces
and excludes the first X entries
|
static java.lang.String |
toString(java.util.List<java.lang.String> list)
Forms the StringList into a normal sentence with Spaces
|
static java.lang.String |
toString(java.lang.String... list)
Forms the String Array into a normal sentence with Spaces
|
public static java.util.List getRandomEntries(java.util.List list,
int random)
list - The List you want the entries to be taken fromrandom - How many Entries should be returnedpublic static java.lang.String toString(java.util.List<java.lang.String> list)
list - The List you want to convertpublic static java.lang.String toString(java.lang.String... list)
list - The List you want to convertpublic static java.lang.String toString(int excluded,
java.lang.String... list)
list - The List you want to convertexcluded - The Start Index for the String Array