Class MaxArrayFunction.Integer

All Implemented Interfaces:
EventListener, DoubleSource, IntSource, UpdatableSource
Enclosing class:
MaxArrayFunction

public static class MaxArrayFunction.Integer extends MaxArrayFunction implements IntSource
MaxFunction operating on integer source values.
  • Field Details

    • imax

      protected int imax
  • Constructor Details

    • Integer

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

    • apply

      public void apply(int @NonNull [] data)
      Applies the function to the given array of integer values.
      Overrides:
      apply in class AbstractArrayFunction
      Parameters:
      data - A source array of values.
      Throws:
      NullPointerException - when data is null.
    • getIntValue

      public int getIntValue(@NonNull @NonNull Enum<?> id)
      Returns the integer value corresponding to the given variableID
      Specified by:
      getIntValue in interface IntSource
      Parameters:
      id - A unique identifier for a variable.
      Returns:
      The current integer value of the required variable.
      Throws:
      NullPointerException - when id is null.
    • getDoubleValue

      public double getDoubleValue(@NonNull @NonNull Enum<?> variableID)
      Returns the double value corresponding to the given variableID
      Specified by:
      getDoubleValue in interface DoubleSource
      Parameters:
      variableID - A unique identifier for a variable.
      Returns:
      The current double value of the required variable.
      Throws:
      NullPointerException - when variableID is null.