Class SumArrayFunction

All Implemented Interfaces:
EventListener, DoubleSource, UpdatableSource
Direct Known Subclasses:
SumArrayFunction.Double, SumArrayFunction.Integer, SumArrayFunction.Long

public abstract class SumArrayFunction extends AbstractArrayFunction implements DoubleSource
This class computes the sum of an array of source values. According to the source data type there are three data-type oriented implementations. Each of them implements always the DoubleSource interface.
  • Constructor Details

    • SumArrayFunction

      public SumArrayFunction(@NonNull @NonNull IntArraySource source)
      Creates a sum function on an integer array source.
      Parameters:
      source - The data source.
      Throws:
      NullPointerException - when source is null.
    • SumArrayFunction

      public SumArrayFunction(@NonNull @NonNull LongArraySource source)
      Creates a sum function on a long array source.
      Parameters:
      source - The data source.
      Throws:
      NullPointerException - when source is null.
    • SumArrayFunction

      public SumArrayFunction(@NonNull @NonNull DoubleArraySource source)
      Create a sum function on a double array source.
      Parameters:
      source - The data source.
      Throws:
      NullPointerException - when source is null.