Class DoubleList
java.lang.Object
de.xima.fc.common.graphdot.DoubleList
- All Implemented Interfaces:
Serializable, CharSequence
A list of doubles.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondefault charcharAt(int index) default IntStreamchars()default IntStreamfinal booleandouble[]final 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) toString()
-
Constructor Details
-
DoubleList
public DoubleList(double[] doubles) Creates a new list of doubles.- Parameters:
doubles- The list of doubles.
-
-
Method Details
-
getDoubleList
-
getDoubles
public double[] getDoubles()- Returns:
- A copy of the doubles in this list.
-
toString
- Specified by:
toStringin interfaceCharSequence
-
of
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
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.
-
equals
-
hashCode
-
charAt
default char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
chars
- Specified by:
charsin interfaceCharSequence
-
codePoints
- Specified by:
codePointsin interfaceCharSequence
-
length
default int length()- Specified by:
lengthin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-