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:
  • Constructor Details

    • DoubleList

      public DoubleList(double[] doubles)
      Creates a new list of doubles.
      Parameters:
      doubles - The list of doubles.
  • Method Details

    • getDoubleList

      public List<Double> getDoubleList()
      Returns:
      A List with the doubles in this list.
    • getDoubles

      public double[] getDoubles()
      Returns:
      A copy of the doubles in this list.
    • toString

      public String toString()
      Specified by:
      toString in interface CharSequence
    • 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.
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • charAt

      default char charAt(int index)
      Specified by:
      charAt in interface CharSequence
    • chars

      default IntStream chars()
      Specified by:
      chars in interface CharSequence
    • codePoints

      default IntStream codePoints()
      Specified by:
      codePoints in interface CharSequence
    • length

      default int length()
      Specified by:
      length in interface CharSequence
    • subSequence

      default CharSequence subSequence(int start, int end)
      Specified by:
      subSequence in interface CharSequence