Class MinArrayFunction.Long

All Implemented Interfaces:
EventListener, DoubleSource, LongSource, UpdatableSource
Enclosing class:
MinArrayFunction

public static class MinArrayFunction.Long extends MinArrayFunction implements LongSource
MinFunction operating on long source values.
  • Field Details

    • lmin

      protected long lmin
  • Constructor Details

    • Long

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

    • apply

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

      public long getLongValue(@NonNull @NonNull Enum<?> variableID)
      Returns the long value corresponding to the given variableID
      Specified by:
      getLongValue in interface LongSource
      Parameters:
      variableID - A unique identifier for a variable.
      Returns:
      The current long value of the required variable.
      Throws:
      NullPointerException - when variableID 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.