package com.sap.olingo.jpa.metadata.core.edm.mapper.testobjects;

import com.sap.olingo.jpa.metadata.core.edm.annotation.EdmFunction;
import com.sap.olingo.jpa.metadata.core.edm.annotation.EdmFunction.ReturnType;
import com.sap.olingo.jpa.metadata.core.edm.annotation.EdmParameter;
import com.sap.olingo.jpa.metadata.core.edm.mapper.extension.ODataFunction;

public class ExampleJavaTwoFunctions implements ODataFunction {

  public ExampleJavaTwoFunctions() {
    super();
  }

  @EdmFunction(name = "", returnType = @ReturnType)
  public Integer multi(@EdmParameter(name = "A") final int a, @EdmParameter(name = "B") final int b) {
    return a * b;
  }

  @EdmFunction(name = "", returnType = @ReturnType)
  public Integer divide(@EdmParameter(name = "A") final int a, @EdmParameter(name = "B") final int b) {
    return a / b;
  }
}
