Back to project page Kite.
The source code is released under:
Apache License
If you think the Android project Kite listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * /*from ww w . j a va 2 s . c om*/ */ package com.efurture.kite.expression; /** * @author gubaojian email: gubaojian@163.com **/ public class EvaluatorManager { /** * default math expression evaluator * */ private static Evaluator defaultEvaluator; /** * return default math expression evaluator * */ public static Evaluator getDefaultEvaluator() { if (defaultEvaluator == null) { synchronized (EvaluatorManager.class) { if (defaultEvaluator == null) { defaultEvaluator = new Exp4jEvaluator(); } } } return defaultEvaluator; } public static void setDefaultEvaluator(Evaluator defaultEvaluator) { EvaluatorManager.defaultEvaluator = defaultEvaluator; } }