/** * Applies mask on a given string * * @param mask * @param value * @return FormatResult containing formatted string and cursorindex */ public String applyMask(String value) { return formatter.applyMask(displayHints.getMask(), value); }
/** * Applies mask on a given string and calculates the new cursorindex for the given newValue and * oldValue * * @param mask * @param newValue * @param oldValue * @return FormatResult containing formatted string and cursorindex */ public FormatResult applyMask(String newValue, String oldValue, Integer cursorIndex) { return formatter.applyMask(displayHints.getMask(), newValue, oldValue, cursorIndex); }