@Test(expected = TypeConverterException.class) public void testValidateFail() throws Exception { typeConverter.validate(Long.TYPE, 2, -1); }
@Override public void validate(Class<?> type, int size, int decimals) { if(!(String.class.equals(type))) { throw new TypeConverterException("Only supports converting to and from String"); } }
StringToString extends TypeConverterBase { @Override public void validate(Class<?> type, int size, int decimals) { if(!(String.class.equals(type))) { throw new TypeConverterException("Only supports converting to and from String"); } } }
StringToString extends TypeConverterBase { @Override public void validate(Class<?> type, int size, int decimals) { if(!(String.class.equals(type))) { throw new TypeConverterException("Only supports converting to and from String"); } }  }
StringToString extends TypeConverterBase { @Override public void validate(Class<?> type, int size, int decimals) { if(!(String.class.equals(type))) { throw new TypeConverterException("Only supports converting to and from String"); } }  @Override void validate(Class<?> type, int size, int decimals); @Override Object to(byte[] bytes, int offset, int length, int decimals, boolean removePadding); @Override byte[] from(Object value, int length, int decimals, boolean addPadding); }
StringToString extends TypeConverterBase { @Override public void validate(Class<?> type, int size, int decimals) { if(!(String.class.equals(type))) { throw new TypeConverterException("Only supports converting to and from String"); } }  @Override void validate(Class<?> type, int size, int decimals); @Override Object to(byte[] bytes, int offset, int length, int decimals, boolean removePadding); @Override byte[] from(Object value, int length, int decimals, boolean addPadding);  }