@ Override public Randomizer < ? > getRandomizer ( Field field ) { if ( field . isAnnotationPresent ( org . jeasy . random . annotation . Randomizer . class ) ) { org . jeasy . random . annotation . Randomizer randomizer = field . getAnnotation ( org . jeasy . random . annotation . Randomizer . class ) ; Class < ? > type = randomizer . value ( ) ; RandomizerArgument [ ] arguments = randomizer . args ( ) ; return ReflectionUtils . newInstance ( type , arguments ) ; } return null ; }
Retrieves a randomizer for the given field .