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