@Test public void testDecode__illegalArgument() { String[] illegals = {"1.1", "9aa"}; for (String text : illegals) { try { type.decode(text); fail(); } catch (NumberFormatException nfe) { } } }
@Override public IntegerHolder decode(String text) { Long value = EngineUtil.hasText(text) ? Long.valueOf(text.trim()) : null; return new IntegerHolder(value); }
IntegerType implements Type<IntegerHolder> { @Override public IntegerHolder decode(String text) { Long value = EngineUtil.hasText(text) ? Long.valueOf(text.trim()) : null; return new IntegerHolder(value); } }
IntegerType implements Type<IntegerHolder> { @Override public IntegerHolder decode(String text) { Long value = EngineUtil.hasText(text) ? Long.valueOf(text.trim()) : null; return new IntegerHolder(value); }  }
IntegerType implements Type<IntegerHolder> { @Override public IntegerHolder decode(String text) { Long value = EngineUtil.hasText(text) ? Long.valueOf(text.trim()) : null; return new IntegerHolder(value); }  @Override String encode(IntegerHolder value); @Override IntegerHolder decode(String text); @Override IntegerHolder convert(Object obj); @Override IntegerHolder[] newArray(int size); }
IntegerType implements Type<IntegerHolder> { @Override public IntegerHolder decode(String text) { Long value = EngineUtil.hasText(text) ? Long.valueOf(text.trim()) : null; return new IntegerHolder(value); }  @Override String encode(IntegerHolder value); @Override IntegerHolder decode(String text); @Override IntegerHolder convert(Object obj); @Override IntegerHolder[] newArray(int size); static final String TYPE_NAME; }