diff --git a/src/main/java/cokr/xit/adds/cmmn/xls/FormatMaker.java b/src/main/java/cokr/xit/adds/cmmn/xls/FormatMaker.java new file mode 100644 index 0000000..efe63d6 --- /dev/null +++ b/src/main/java/cokr/xit/adds/cmmn/xls/FormatMaker.java @@ -0,0 +1,16 @@ +package cokr.xit.adds.cmmn.xls; + +import java.util.Map; + +import cokr.xit.base.docs.xls.Format; + +public class FormatMaker { + + @SuppressWarnings("rawtypes") + public static Format a_slash_ab(Format format, String a, String b) { + return format.of(a).value(o -> { + return ((Map) o).get(a) + " / " + ((Map) o).get(a+b); + }); + } + +}