public final class Collections extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T[] |
arr(T... values)
Create array from values.
|
static <T> T[] |
array(T... values)
Create array from values.
|
static <T> List<T> |
li(T... values)
Create a list from values.
|
static <T> List<T> |
list(T... values)
Create a list from values.
|
static <K,V> Map<K,V> |
map(Object... keysAndValues)
Create a map from keys and values.
|
static <T> Set<T> |
set(T... values)
Creates a set from values.
|
public static <T> T[] arr(T... values)
values
- values to create array from.public static <T> T[] array(T... values)
values
- values to create array from.public static <T> Set<T> set(T... values)
values
- values for a set.public static <K,V> Map<K,V> map(Object... keysAndValues)
keysAndValues
- list of key value pairs. The number of items must be even.
The argument at index 0 is a key of the value at index 1, argument at index 2 is key of value at index 3, and so on.public static <T> List<T> li(T... values)
values
- values to create a list from.public static <T> List<T> list(T... values)
values
- values to create a list from.Copyright © 2016 JavaLite. All rights reserved.