All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.namics.commons.random.generator.basic.FloatGenerator Maven / Gradle / Ivy

Go to download

This modules aims to provide a universal mechanism to create random test dummies of java objects.

There is a newer version: 1.3.0
Show newest version
/*
 * 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);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy