MCPcopy Create free account
hub / github.com/Aghajari/MathParser / clone

Method clone

MathParser/src/com/aghajari/math/MathParser.java:844–853  ·  view source on GitHub ↗

Creates a new copy of this MathParser @return a shallow copy of this MathParser @noinspection MethodDoesntCallSuperMethod

()

Source from the content-addressed store, hash-verified

842 * @noinspection MethodDoesntCallSuperMethod
843 */
844 public MathParser clone() {
845 MathParser newParser = MathParser.create();
846 newParser.getVariables().addAll(variables);
847 newParser.getInnerVariables().addAll(innerVariables);
848 newParser.getFunctions().addAll(functions);
849 newParser.tmpGenerator.set(tmpGenerator.get());
850 newParser.roundEnabled = roundEnabled;
851 newParser.roundScale = roundScale;
852 return newParser;
853 }
854
855 /**
856 * Resets temp variables

Callers 4

sigmaMethod · 0.80
limitMethod · 0.80
derivativeMethod · 0.80
integralMethod · 0.80

Calls 5

createMethod · 0.95
getVariablesMethod · 0.95
getInnerVariablesMethod · 0.95
getFunctionsMethod · 0.95
getMethod · 0.80

Tested by

no test coverage detected