protected static void assertLength(String value, int i, String type) throws FieldConvertError { if (value.length() != i) { throwFieldConvertError(value, type); } }
protected static void assertLength(String value, String type, int... lengths) throws FieldConvertError { for (int length : lengths) { if (value.length() == length) { return; } } throwFieldConvertError(value, type); }
protected static void assertLength(String value, int i, String type) throws FieldConvertError { if (value.length() != i) { throwFieldConvertError(value, type); } }
protected static void assertSeparator(String value, int offset, char ch, String type) throws FieldConvertError { if (value.charAt(offset) != ch) { throwFieldConvertError(value, type); } }
protected static void assertSeparator(String value, int offset, char ch, String type) throws FieldConvertError { if (value.charAt(offset) != ch) { throwFieldConvertError(value, type); } }
protected static void assertLength(String value, String type, int... lengths) throws FieldConvertError { for (int length : lengths) { if (value.length() == length) { return; } } throwFieldConvertError(value, type); }
protected static void assertLength(String value, int i, String type) throws FieldConvertError { if (value.length() != i) { throwFieldConvertError(value, type); } }
protected static void assertSeparator(String value, int offset, char ch, String type) throws FieldConvertError { if (value.charAt(offset) != ch) { throwFieldConvertError(value, type); } }
protected static void assertDigitSequence(String value, int i, int j, String type) throws FieldConvertError { for (int offset = i; offset < j; offset++) { if (!Character.isDigit(value.charAt(offset))) { throwFieldConvertError(value, type); } } }
protected static void assertDigitSequence(String value, int i, int j, String type) throws FieldConvertError { for (int offset = i; offset < j; offset++) { if (!Character.isDigit(value.charAt(offset))) { throwFieldConvertError(value, type); } } }
protected static void assertDigitSequence(String value, int i, int j, String type) throws FieldConvertError { for (int offset = i; offset < j; offset++) { if (!Character.isDigit(value.charAt(offset))) { throwFieldConvertError(value, type); } } }