Class DoubleList

    • Constructor Detail

      • DoubleList

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

      • 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.
      • 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

        public default char charAt​(int index)
        Specified by:
        charAt in interface CharSequence