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

io.javarig.generator.collection.set.HashSetGenerator Maven / Gradle / Ivy

Go to download

This project aims to provide a random instances generator for any class in java, it iterates through setters of an empty object and sets the fields values (using Java reflection api) randomly

The newest version!
package io.javarig.generator.collection.set;

import io.javarig.RandomInstanceGenerator;

import java.lang.reflect.Type;
import java.util.HashSet;
import java.util.Set;

public class HashSetGenerator extends SetGenerator{
    public HashSetGenerator(Type type, RandomInstanceGenerator randomInstanceGenerator) {
        super(type, randomInstanceGenerator);
    }

    @SuppressWarnings({"rawtypes"})
    @Override
    public Class getImplementationType() {
        return HashSet.class;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy