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 charcharAt(int index)default IntStreamchars()default IntStreamcodePoints()booleanequals(Object obj)List<Double>getDoubleList()double[]getDoubles()inthashCode()default intlength()static DoubleListof(double... doubles)Creates a double list from the given doubles.static DoubleListscaled(double[] doubles, double scale)Creates a double list from the given doubles, with all doubles scaled (multiplied) by the given value.default CharSequencesubSequence(int start, int end)StringtoString() 
 - 
 
- 
- 
Method Detail
- 
getDoubles
public double[] getDoubles()
- Returns:
 - A copy of the doubles in this list.
 
 
- 
toString
public String toString()
- Specified by:
 toStringin 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:
 charAtin interfaceCharSequence
 
- 
chars
public default IntStream chars()
- Specified by:
 charsin interfaceCharSequence
 
- 
codePoints
public default IntStream codePoints()
- Specified by:
 codePointsin interfaceCharSequence
 
- 
length
public default int length()
- Specified by:
 lengthin interfaceCharSequence
 
- 
subSequence
public default CharSequence subSequence(int start, int end)
- Specified by:
 subSequencein interfaceCharSequence
 
 - 
 
 -