Example #1
0
  public static boolean isIntLocation(String string) {

    if (string == null) {
      return false;
    }

    String[] split = string.split(",");

    if (split.length != 4 && split.length != 3) {
      return false;
    }

    return MiscUtils.isInt(split[0]) && MiscUtils.isInt(split[1]) && MiscUtils.isInt(split[2]);
  }