Please give me an advice and example how I can implement this situation when I should call different methods up to incoming params with Map.
public String mainMethod(Int count) {
if (count == 1) { return myMethod }
else if (count == 2) { return myMethod2 }
else if (count == 3) { return myMethod3 }
}
public String myMethod1() {
..............
}
public String myMethod2() {
..............
}
public String myMethod3() {
..............
}