@Test public void convertCasted() { Assert.assertEquals( "20", converter.convertCasted( 20 ) ); }
@Nullable public final B convertCasted( @Nullable Object source ) throws ConversionException { return convert( fromClass.cast( source ) ); }
TypedConverter implements Converter<A, B> { @Nullable public final B convertCasted( @Nullable Object source ) throws ConversionException { return convert( fromClass.cast( source ) ); } }
TypedConverter implements Converter<A, B> { @Nullable public final B convertCasted( @Nullable Object source ) throws ConversionException { return convert( fromClass.cast( source ) ); } TypedConverter( @Nonnull Class<A> fromClass, @Nonnull Class<B> toClass ); }
TypedConverter implements Converter<A, B> { @Nullable public final B convertCasted( @Nullable Object source ) throws ConversionException { return convert( fromClass.cast( source ) ); } TypedConverter( @Nonnull Class<A> fromClass, @Nonnull Class<B> toClass ); Class<A> getFromClass(); Class<B> getToClass(); @Nullable abstract B doConvert( @Nonnull A source ); @Nullable B doConvertNull(); @Nullable final B convertCasted( @Nullable Object source ); @Nullable final B convert( @Nullable A source ); }
TypedConverter implements Converter<A, B> { @Nullable public final B convertCasted( @Nullable Object source ) throws ConversionException { return convert( fromClass.cast( source ) ); } TypedConverter( @Nonnull Class<A> fromClass, @Nonnull Class<B> toClass ); Class<A> getFromClass(); Class<B> getToClass(); @Nullable abstract B doConvert( @Nonnull A source ); @Nullable B doConvertNull(); @Nullable final B convertCasted( @Nullable Object source ); @Nullable final B convert( @Nullable A source );  }