@Test public void testToCharacter() throws Exception { Assert.assertEquals((Character) '1', InputSourceTransforms.TRANSFORMER.toCharacter(newInputSource("12345"))); }
@Transformer public Character toCharacter(InputSource inSource) { return toString(inSource).charAt(0); }
InputSourceTransforms { @Transformer public Character toCharacter(InputSource inSource) { return toString(inSource).charAt(0); } }
InputSourceTransforms { @Transformer public Character toCharacter(InputSource inSource) { return toString(inSource).charAt(0); }  }
InputSourceTransforms { @Transformer public Character toCharacter(InputSource inSource) { return toString(inSource).charAt(0); }  @Transformer String toString(InputSource inSource); @Transformer Reader toReader(InputSource inSource); @Transformer InputStream toInputStream(InputSource inSource); @Transformer Integer toInteger(InputSource inSource); @Transformer Long toLong(InputSource inSource); @Transformer Short toShort(InputSource inSource); @Transformer char[] toChars(InputSource inSource); @Transformer Character toCharacter(InputSource inSource); @Transformer byte[] toBytes(InputSource inSource); @Transformer Double toDouble(InputSource inSource); @Transformer Float toFloat(InputSource inSource); }
InputSourceTransforms { @Transformer public Character toCharacter(InputSource inSource) { return toString(inSource).charAt(0); }  @Transformer String toString(InputSource inSource); @Transformer Reader toReader(InputSource inSource); @Transformer InputStream toInputStream(InputSource inSource); @Transformer Integer toInteger(InputSource inSource); @Transformer Long toLong(InputSource inSource); @Transformer Short toShort(InputSource inSource); @Transformer char[] toChars(InputSource inSource); @Transformer Character toCharacter(InputSource inSource); @Transformer byte[] toBytes(InputSource inSource); @Transformer Double toDouble(InputSource inSource); @Transformer Float toFloat(InputSource inSource); static final InputSourceTransforms TRANSFORMER; }