/** * Sets {@link mXparser#primesCache} to null */ public static void setNoPrimesCache() { primesCache = null; }
/** * Initialization of prime numbers cache. * @param mximumNumberInCache The maximum integer number that * will be stored in cache. * @see PrimesCache */ public static void initPrimesCache(int mximumNumberInCache) { primesCache = new PrimesCache(mximumNumberInCache); }
/** * Initialization of prime numbers cache. * @param primesCache The primes cache object * @see PrimesCache */ public static void initPrimesCache(PrimesCache primesCache) { mXparser.primesCache = primesCache; }
/** * Initialization of prime numbers cache. * Cache size according to {@link PrimesCache#DEFAULT_MAX_NUM_IN_CACHE} * @see PrimesCache */ public static void initPrimesCache() { primesCache = new PrimesCache(); }