|
Akka/Scala example source code file (MathOp.scala)
The MathOp.scala Akka example source codepackage sample.remote.calculator trait MathOp final case class Add(nbr1: Int, nbr2: Int) extends MathOp final case class Subtract(nbr1: Int, nbr2: Int) extends MathOp final case class Multiply(nbr1: Int, nbr2: Int) extends MathOp final case class Divide(nbr1: Double, nbr2: Int) extends MathOp trait MathResult final case class AddResult(nbr: Int, nbr2: Int, result: Int) extends MathResult final case class SubtractResult(nbr1: Int, nbr2: Int, result: Int) extends MathResult final case class MultiplicationResult(nbr1: Int, nbr2: Int, result: Int) extends MathResult final case class DivisionResult(nbr1: Double, nbr2: Int, result: Double) extends MathResult Other Akka source code examplesHere is a short list of links related to this Akka MathOp.scala source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.