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