1 package com.lexicalscope.fluentreflection; 2 3 import ch.lambdaj.function.convert.Converter; 4 5 class ConvertClassToSimpleName implements Converter<Class<?>, String> { 6 @Override 7 public String convert(final Class<?> from) { 8 if (from == null) { 9 return null; 10 } 11 return from.getSimpleName(); 12 } 13 }