Interface IArrayTool
- All Known Implementing Classes:
ArrayTool
-
Method Summary
Modifier and TypeMethodDescription<E> E[]createArrayWithElement(E element, E... elements) createIterable(byte[] bytes) createIterable(double[] values) createIterable(int[] values) createIterable(long[] values) <E> Iterable<E> createIterable(E[] elements) createString(long[] values)
-
Method Details
-
createArrayWithElement
<E> E[] createArrayWithElement(E element, E... elements) - Type Parameters:
E- is the type of the given element and the given elements.- Parameters:
element-elements-- Returns:
- a new array with the given element and elements.
- Throws:
RuntimeException- if the given elements is null.
-
createIterable
- Parameters:
bytes-- Returns:
- a new
Iterablewith the given bytes. - Throws:
RuntimeException- if the given bytes is null.
-
createIterable
- Parameters:
values-- Returns:
- a new
Iterablewith the given values. - Throws:
RuntimeException- if the given values is null.
-
createIterable
- Type Parameters:
E- is the type of the given elements.- Parameters:
elements-- Returns:
- a new
Iterablewith the given elements. - Throws:
RuntimeException- if the given elements is null.
-
createIterable
- Parameters:
values-- Returns:
- a new
Iterablewith the given values. - Throws:
RuntimeException- if the given values is null.
-
createIterable
- Parameters:
values-- Returns:
- a new
Iterablewith the given values. - Throws:
RuntimeException- if the given values is null.
-
createString
- Parameters:
values-- Returns:
- a
Stringrepresentation of the given values. - Throws:
RuntimeException- if the given values is null.
-