com.namics.commons.random.generator.basic.FloatGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-random Show documentation
Show all versions of java-random Show documentation
This modules aims to provide a universal mechanism to create random test dummies of java objects.
/*
* Copyright 2000-2014 Namics AG. All rights reserved.
*/
package com.namics.commons.random.generator.basic;
import com.namics.commons.random.generator.RandomGenerator;
import org.apache.commons.lang.math.RandomUtils;
import java.util.Arrays;
/**
* IntegerGenerator.
*
* @author aschaefer
* @since 20.02.14 16:58
*/
public class FloatGenerator implements RandomGenerator {
@Override
public Float random() {
return RandomUtils.nextFloat();
}
@Override
public Iterable> supportedTypes() {
return Arrays.asList(Float.class,float.class);
}
}