Klasse GlobalArrayTool
java.lang.Object
ch.nolix.core.independent.containertool.GlobalArrayTool
The
GlobalArrayTool provides functions to handle arrays. Of the
GlobalArrayTool class an instance cannot be created.- Version:
- 2017-08-14
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <E> E[]createArrayWithElement(E element, E... elements) static 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.static <E> Iterable<E> createIterable(E[] elements) Creates a new iterable object with the given elements.static <E> Iterable<E> createIterable(Iterable<E> elements, E additionalElement) Creates a new iterable object with the given elements.static StringcreateString(double[] values) static StringcreateString(int[] values) static StringcreateString(long[] values)
-
Methodendetails
-
createArrayWithElement
public static <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 static 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.
-