com.jparams.object.builder.provider.BigDecimalProvider Maven / Gradle / Ivy
package com.jparams.object.builder.provider;
import java.math.BigDecimal;
import java.util.Random;
import com.jparams.object.builder.Context;
public class BigDecimalProvider implements Provider
{
private final Random random = new Random();
@Override
public boolean supports(final Class> clazz)
{
return clazz.isAssignableFrom(BigDecimal.class);
}
@Override
public BigDecimal provide(final Context context)
{
return BigDecimal.valueOf(random.nextDouble());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy