getRegex static method

String getRegex(
  1. int type
)

Implementation

static String getRegex(int type) {
  switch (type) {
    case NANO:
      return NANO_REGEX;
    case BANANO:
      return BANANO_REGEX;
    case PAW:
      return PAW_REGEX;
    default:
      return PAW_REGEX;
  }
}