@Test public void toUrlPagePath() { assertEquals("x,y,z", Util.toUrlPagePath("x/y/z")); assertEquals("x,y,z", Util.toUrlPagePath("x,y,z")); assertNull(Util.toUrlPagePath(null)); }
public static String toUrlPagePath(String pagePath) { return (pagePath != null) ? pagePath.replace('/', ',') : null; }
Util { public static String toUrlPagePath(String pagePath) { return (pagePath != null) ? pagePath.replace('/', ',') : null; } }
Util { public static String toUrlPagePath(String pagePath) { return (pagePath != null) ? pagePath.replace('/', ',') : null; } private  Util(); }
Util { public static String toUrlPagePath(String pagePath) { return (pagePath != null) ? pagePath.replace('/', ',') : null; } private  Util(); static String toRealPagePath(String pagePath); static String toUrlPagePath(String pagePath); static String simplifyForUrl(String text); static String join(Object o, String delimiter); static void deleteQuietly(File f); static RuntimeException toRuntimeException(Throwable t); static File toFile(File baseDir, String path); static void closeQuietly(Closeable c); static Map<String, String> parseParameters(String params); static String serialize(Serializable s); static T deserialize(String s, Class<T> clazz); }
Util { public static String toUrlPagePath(String pagePath) { return (pagePath != null) ? pagePath.replace('/', ',') : null; } private  Util(); static String toRealPagePath(String pagePath); static String toUrlPagePath(String pagePath); static String simplifyForUrl(String text); static String join(Object o, String delimiter); static void deleteQuietly(File f); static RuntimeException toRuntimeException(Throwable t); static File toFile(File baseDir, String path); static void closeQuietly(Closeable c); static Map<String, String> parseParameters(String params); static String serialize(Serializable s); static T deserialize(String s, Class<T> clazz);  }