@Test public void isValidIpPort() throws Exception { assertTrue(OtherUtilities.isValidIpPort("9000")); assertTrue(OtherUtilities.isValidIpPort("5000")); assertFalse(OtherUtilities.isValidIpPort("-1")); assertFalse(OtherUtilities.isValidIpPort("9999999999999999999")); assertFalse(OtherUtilities.isValidIpPort("65539")); assertFalse(OtherUtilities.isValidIpPort("65536")); }
public static boolean isValidIpPort(@NotNull final String portStr) { return ipPortPattern.matcher(StringUtils.strip(portStr)).matches(); }
OtherUtilities { public static boolean isValidIpPort(@NotNull final String portStr) { return ipPortPattern.matcher(StringUtils.strip(portStr)).matches(); } }
OtherUtilities { public static boolean isValidIpPort(@NotNull final String portStr) { return ipPortPattern.matcher(StringUtils.strip(portStr)).matches(); } private  OtherUtilities(); }
OtherUtilities { public static boolean isValidIpPort(@NotNull final String portStr) { return ipPortPattern.matcher(StringUtils.strip(portStr)).matches(); } private  OtherUtilities(); static boolean isValidEmail(@NotNull final String emailStr); static boolean isValidIpPort(@NotNull final String portStr); static boolean isValidIp(@NotNull final String ipStr); @NotNull static String changeNewLineFromWindowsToUnix(@NotNull final String string); @NotNull static String changeNewLineFromUnixToWindows(@NotNull final String string); }
OtherUtilities { public static boolean isValidIpPort(@NotNull final String portStr) { return ipPortPattern.matcher(StringUtils.strip(portStr)).matches(); } private  OtherUtilities(); static boolean isValidEmail(@NotNull final String emailStr); static boolean isValidIpPort(@NotNull final String portStr); static boolean isValidIp(@NotNull final String ipStr); @NotNull static String changeNewLineFromWindowsToUnix(@NotNull final String string); @NotNull static String changeNewLineFromUnixToWindows(@NotNull final String string);  }