@Test public void isAlphanumericCodeTest() { assertFalse(VitamCodeHelper.isAlphanumericCode("ee")); assertFalse(VitamCodeHelper.isAlphanumericCode("0-")); assertFalse(VitamCodeHelper.isAlphanumericCode("A*")); assertTrue(VitamCodeHelper.isAlphanumericCode("00")); assertTrue(VitamCodeHelper.isAlphanumericCode("0F")); assertTrue(VitamCodeHelper.isAlphanumericCode("ZO")); }
public static boolean isAlphanumericCode(String code) { char c; for (int i = 0; i < code.length(); i++) { c = code.charAt(i); if ((c < 0x30 || c > 0x39) && (c < 0x41 || c > 0x5a)) { return false; } } return true; }
VitamCodeHelper { public static boolean isAlphanumericCode(String code) { char c; for (int i = 0; i < code.length(); i++) { c = code.charAt(i); if ((c < 0x30 || c > 0x39) && (c < 0x41 || c > 0x5a)) { return false; } } return true; } }
VitamCodeHelper { public static boolean isAlphanumericCode(String code) { char c; for (int i = 0; i < code.length(); i++) { c = code.charAt(i); if ((c < 0x30 || c > 0x39) && (c < 0x41 || c > 0x5a)) { return false; } } return true; } private  VitamCodeHelper(); }
VitamCodeHelper { public static boolean isAlphanumericCode(String code) { char c; for (int i = 0; i < code.length(); i++) { c = code.charAt(i); if ((c < 0x30 || c > 0x39) && (c < 0x41 || c > 0x5a)) { return false; } } return true; } private  VitamCodeHelper(); static boolean isAlphanumericCode(String code); static VitamCode getFrom(String code); static VitamCode getFrom(ServiceName service, DomainName domain, String item); static String getMessage(ServiceName service, DomainName domain, String item); static String getMessageFromVitamCode(VitamCode vitamCode); static String getMessage(String vitamCode); static String getParametrizedMessageFromVitamCode(VitamCode vitamCode, Object... params); static String getParametrizedMessageFromCode(String vitamCode, Object... params); static String getParametrizedMessage(ServiceName service, DomainName domain, String item, Object... params); static List<VitamCode> getFromDomain(DomainName domain); static List<VitamCode> getFromService(ServiceName service); static String getCode(VitamCode vitamCode); static String getLogMessage(VitamCode vitamCode, Object... params); static VitamError toVitamError(VitamCode vitamCode, String description); }
VitamCodeHelper { public static boolean isAlphanumericCode(String code) { char c; for (int i = 0; i < code.length(); i++) { c = code.charAt(i); if ((c < 0x30 || c > 0x39) && (c < 0x41 || c > 0x5a)) { return false; } } return true; } private  VitamCodeHelper(); static boolean isAlphanumericCode(String code); static VitamCode getFrom(String code); static VitamCode getFrom(ServiceName service, DomainName domain, String item); static String getMessage(ServiceName service, DomainName domain, String item); static String getMessageFromVitamCode(VitamCode vitamCode); static String getMessage(String vitamCode); static String getParametrizedMessageFromVitamCode(VitamCode vitamCode, Object... params); static String getParametrizedMessageFromCode(String vitamCode, Object... params); static String getParametrizedMessage(ServiceName service, DomainName domain, String item, Object... params); static List<VitamCode> getFromDomain(DomainName domain); static List<VitamCode> getFromService(ServiceName service); static String getCode(VitamCode vitamCode); static String getLogMessage(VitamCode vitamCode, Object... params); static VitamError toVitamError(VitamCode vitamCode, String description);  }