Class ArrayTool
java.lang.Object
ch.nolix.base.independent.arraytool.ArrayTool
- All Implemented Interfaces:
IArrayTool
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> E[]createArrayWithElement(E element, E... elements) createIterable(byte[] values) createIterable(double[] values) createIterable(int[] values) createIterable(long[] values) <E> Iterable<E> createIterable(E[] elements) createString(long[] values)
-
Constructor Details
-
ArrayTool
public ArrayTool()
-
-
Method Details
-
createArrayWithElement
public <E> E[] createArrayWithElement(E element, E... elements) - Specified by:
createArrayWithElementin interfaceIArrayTool- 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.
-
createIterable
- Specified by:
createIterablein interfaceIArrayTool- Parameters:
values-- Returns:
- a new
Iterablewith the given bytes.
-
createIterable
- Specified by:
createIterablein interfaceIArrayTool- Parameters:
values-- Returns:
- a new
Iterablewith the given values.
-
createIterable
- Specified by:
createIterablein interfaceIArrayTool- Type Parameters:
E- is the type of the given elements.- Parameters:
elements-- Returns:
- a new
Iterablewith the given elements.
-
createIterable
- Specified by:
createIterablein interfaceIArrayTool- Parameters:
values-- Returns:
- a new
Iterablewith the given values.
-
createIterable
- Specified by:
createIterablein interfaceIArrayTool- Parameters:
values-- Returns:
- a new
Iterablewith the given values.
-
createString
- Specified by:
createStringin interfaceIArrayTool- Parameters:
values-- Returns:
- a
Stringrepresentation of the given values.
-