com.jparams.object.builder.provider.CharProvider Maven / Gradle / Ivy
package com.jparams.object.builder.provider;
import java.util.UUID;
import com.jparams.object.builder.Context;
public class CharProvider implements Provider
{
@Override
public boolean supports(final Class> clazz)
{
return clazz.isAssignableFrom(Character.class) || clazz.isAssignableFrom(char.class);
}
@Override
public Character provide(final Context context)
{
return UUID.randomUUID().toString().charAt(0);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy