package miwax.java_conf.gr.jp.frugalitycalc.model;

import java.math.BigDecimal;
import java.math.MathContext;

public enum Operation {
    PLUS     { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.add(y);} },
    MINUS    { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.subtract(y);} },
    MULTIPLE { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.multiply(y);} },
    DIVIDE   { BigDecimal apply(BigDecimal x, BigDecimal y) {return x.divide(y, MathContext.DECIMAL128);} };

    abstract BigDecimal apply(BigDecimal x, BigDecimal y);
}

@@ -137,12 +137,115 @@
     
-PLUS
+NONE(%22%22)      %7B BigDecimal apply(BigDecimal x, BigDecimal y) %7Breturn new BigDecimal(%220%22);%7D %7D,%0A    PLUS(%22+%22)
     
@@ -323,16 +323,21 @@
    MINUS
+(%22-%22)
     %7B Bi
@@ -418,16 +418,21 @@
 MULTIPLE
+(%22%C3%97%22)
  %7B BigDe
@@ -508,16 +508,21 @@
   DIVIDE
+(%22%C3%B7%22)
    %7B Big
@@ -613,16 +613,169 @@
 );%7D %7D;%0A%0A
+    private String string;%0A%0A    Operation(String s) %7B%0A        this.string = s;%0A    %7D%0A%0A    public String getString() %7B%0A        return this.string;%0A    %7D%0A%0A
     abst

Add NONE to Operation and getString