org.eclipse.january.dataset

## Class BinaryOperation.Stub

- java.lang.Object
- - org.eclipse.january.dataset.BinaryOperation.Stub

- All Implemented Interfaces:
    BinaryOperation, IOperation
  Direct Known Subclasses:
    Operations.Exponentiation
  Enclosing interface:
    BinaryOperation

      public static class BinaryOperation.Stub
      extends Object
      implements BinaryOperation

  Stub class where only three methods need to be overridden: `complexOperate(double[], double, double, double, double)`, `toString(String, String)`

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.eclipse.january.dataset.BinaryOperation

      `BinaryOperation.Stub`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BinaryOperation.Stub()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `booleanOperate(long a, long b)`
    `void` | `complexOperate(double[] out, double ra, double ia, double rb, double ib)` override this
    `double` | `doubleOperate(double a, double b)`
    `long` | `longOperate(long a, long b)`
    `String` | `toString(String string, String string2)` override this

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BinaryOperation.Stub

          public BinaryOperation.Stub()

  - ### Method Detail

    - #### doubleOperate

          public double doubleOperate(double a,
                             double b)

      Specified by:
        `doubleOperate` in interface `BinaryOperation`
      Returns:
        a op b

    - #### booleanOperate

          public boolean booleanOperate(long a,
                               long b)

      Specified by:
        `booleanOperate` in interface `BinaryOperation`
      Returns:
        a op b

    - #### longOperate

          public long longOperate(long a,
                         long b)

      Specified by:
        `longOperate` in interface `BinaryOperation`
      Returns:
        a op b

    - #### complexOperate

          public void complexOperate(double[] out,
                            double ra,
                            double ia,
                            double rb,
                            double ib)

      override this
      Specified by:
        `complexOperate` in interface `BinaryOperation`
      Parameters:
        `out` - holds (ra, ia) op (rb, ib)

    - #### toString

          public String toString(String string,
                        String string2)

      override this
      Specified by:
        `toString` in interface `BinaryOperation`
      Returns:
        string to represent output

Copyright © 2017. All rights reserved.