@Test public void isScopeStringArray() { String adderss = "12"; for (int i = 0; i < 6; i++) { boolean isScope = AclUtils.isScope(adderss, 4); if (i == 3) { Assert.assertTrue(isScope); } else { Assert.assertFalse(isScope); } adderss = adderss + ".12"; } }
public static boolean isScope(String num, int index) { String[] strArray = StringUtils.split(num, "."); if (strArray.length != 4) { return false; } return isScope(strArray, index); }
AclUtils { public static boolean isScope(String num, int index) { String[] strArray = StringUtils.split(num, "."); if (strArray.length != 4) { return false; } return isScope(strArray, index); } }
AclUtils { public static boolean isScope(String num, int index) { String[] strArray = StringUtils.split(num, "."); if (strArray.length != 4) { return false; } return isScope(strArray, index); }  }
AclUtils { public static boolean isScope(String num, int index) { String[] strArray = StringUtils.split(num, "."); if (strArray.length != 4) { return false; } return isScope(strArray, index); }  static byte[] combineRequestContent(RemotingCommand request, SortedMap<String, String> fieldsMap); static byte[] combineBytes(byte[] b1, byte[] b2); static String calSignature(byte[] data, String secretKey); static void verify(String netaddress, int index); static String[] getAddreeStrArray(String netaddress, String four); static boolean isScope(String num, int index); static boolean isScope(String[] num, int index); static boolean isScope(String num); static boolean isScope(int num); static boolean isAsterisk(String asterisk); static boolean isColon(String colon); static boolean isMinus(String minus); static T getYamlDataObject(String path, Class<T> clazz); }
AclUtils { public static boolean isScope(String num, int index) { String[] strArray = StringUtils.split(num, "."); if (strArray.length != 4) { return false; } return isScope(strArray, index); }  static byte[] combineRequestContent(RemotingCommand request, SortedMap<String, String> fieldsMap); static byte[] combineBytes(byte[] b1, byte[] b2); static String calSignature(byte[] data, String secretKey); static void verify(String netaddress, int index); static String[] getAddreeStrArray(String netaddress, String four); static boolean isScope(String num, int index); static boolean isScope(String[] num, int index); static boolean isScope(String num); static boolean isScope(int num); static boolean isAsterisk(String asterisk); static boolean isColon(String colon); static boolean isMinus(String minus); static T getYamlDataObject(String path, Class<T> clazz);  }