MCPcopy Index your code
hub / github.com/Tencent/APIJSON / isPath

Method isPath

APIJSONORM/src/main/java/apijson/StringUtil.java:708–711  ·  view source on GitHub ↗

判断是否为路径 @param path @return

(String path)

Source from the content-addressed store, hash-verified

706 * @return
707 */
708 public static boolean isPath(String path) {
709 return StringUtil.isNotEmpty(path, true) && path.contains(SEPARATOR)
710 && path.contains(SEPARATOR + SEPARATOR) == false && path.endsWith(SEPARATOR) == false;
711 }
712
713 /**判断字符类型是否是路径
714 * @param path

Callers 1

splitPathMethod · 0.95

Calls 1

isNotEmptyMethod · 0.95

Tested by

no test coverage detected