Klasse ArrayTool
java.lang.Object
ch.nolix.core.independent.containertool.ArrayTool
The
ArrayTool provides functions to handle arrays.- Version:
- 2017-08-14
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<E> E[]createArrayWithElement(E element, E... elements) double[]createArrayWithValue(double value, double... values) createIterable(byte[] values) Creates a new iterable object with the given values.createIterable(double[] values) Creates a new iterable object with the given values.createIterable(int[] values) Creates a new iterable object with the given values.createIterable(long[] values) Creates a new iterable object with the given values.<E> Iterable<E> createIterable(E[] elements) Creates a new iterable object with the given elements.<E> Iterable<E> createIterable(Iterable<E> elements, E additionalElement) Creates a new iterable object with the given elements.createString(double[] values) createString(int[] values) createString(long[] values)
-
Konstruktordetails
-
ArrayTool
public ArrayTool()
-
-
Methodendetails
-
createArrayWithElement
public <E> E[] createArrayWithElement(E element, E... elements) - Typparameter:
E- is the type of the given firstElement and of the given elements.- Parameter:
element-elements-- Gibt zurück:
- a new array with the given firstElement and elements.
-
createArrayWithValue
public double[] createArrayWithValue(double value, double... values) - Parameter:
value-values-- Gibt zurück:
- a new array with the given values.
-
createIterable
Creates a new iterable object with the given values.- Parameter:
values-- Gibt zurück:
- a new iterable object with the given values.
- Löst aus:
IllegalArgumentException- if the given values is null.
-
createIterable
Creates a new iterable object with the given values.- Parameter:
values-- Gibt zurück:
- a new iterable object with the given values.
- Löst aus:
IllegalArgumentException- if the given values is null.
-
createIterable
Creates a new iterable object with the given elements.- Typparameter:
E- is the type of the given elements.- Parameter:
elements-- Gibt zurück:
- a new iterable object with the given elements.
- Löst aus:
IllegalArgumentException- if the given elements is null.
-
createIterable
Creates a new iterable object with the given elements.- Typparameter:
E- is the type of the given elements and additionalElement.- Parameter:
elements-additionalElement-- Gibt zurück:
- a new iterable object with the given elements and additional element.
- Löst aus:
IllegalArgumentException- if the given elements is null.
-
createIterable
Creates a new iterable object with the given values.- Parameter:
values-- Gibt zurück:
- a new iterable object with the given values.
- Löst aus:
IllegalArgumentException- if the given values is null.
-
createIterable
Creates a new iterable object with the given values.- Parameter:
values-- Gibt zurück:
- a new iterable object with the given values.
- Löst aus:
IllegalArgumentException- if the given values is null.
-
createString
- Parameter:
values-- Gibt zurück:
- a
Stringrepresentation of the given values. - Löst aus:
IllegalArgumentException- if the given values is null.
-
createString
- Parameter:
values-- Gibt zurück:
- a
Stringrepresentation of the given values. - Löst aus:
IllegalArgumentException- if the given values is null.
-
createString
- Parameter:
values-- Gibt zurück:
- a
Stringrepresentation of the given values. - Löst aus:
IllegalArgumentException- if the given values is null.
-