Package de.xima.fc.common.graphdot
Class DoubleList
- java.lang.Object
-
- de.xima.fc.common.graphdot.DoubleList
-
- All Implemented Interfaces:
Serializable
,CharSequence
public final class DoubleList extends Object
A list of doubles.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DoubleList(double[] doubles)
Creates a new list of doubles.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description default char
charAt(int index)
default IntStream
chars()
default IntStream
codePoints()
boolean
equals(Object obj)
List<Double>
getDoubleList()
double[]
getDoubles()
int
hashCode()
default int
length()
static DoubleList
of(double... doubles)
Creates a double list from the given doubles.static DoubleList
scaled(double[] doubles, double scale)
Creates a double list from the given doubles, with all doubles scaled (multiplied) by the given value.default CharSequence
subSequence(int start, int end)
String
toString()
-
-
-
Method Detail
-
getDoubles
public double[] getDoubles()
- Returns:
- A copy of the doubles in this list.
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
-
of
public static DoubleList of(double... doubles)
Creates a double list from the given doubles.- Parameters:
doubles
- Doubles to use as a list.- Returns:
- A double list with the given doubles.
-
scaled
public static DoubleList scaled(double[] doubles, double scale)
Creates a double list from the given doubles, with all doubles scaled (multiplied) by the given value.- Parameters:
doubles
- Doubles to use as a list.scale
- Scale factor.- Returns:
- A double list with the given scaled doubles.
-
charAt
public default char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
chars
public default IntStream chars()
- Specified by:
chars
in interfaceCharSequence
-
codePoints
public default IntStream codePoints()
- Specified by:
codePoints
in interfaceCharSequence
-
length
public default int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public default CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
-