io.javarig.generator.collection.set.LinkedHashSetGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-random-generator Show documentation
Show all versions of java-random-generator Show documentation
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.LinkedHashSet;
import java.util.Set;
public class LinkedHashSetGenerator extends SetGenerator{
public LinkedHashSetGenerator(Type type, RandomInstanceGenerator randomInstanceGenerator) {
super(type, randomInstanceGenerator);
}
@SuppressWarnings({"rawtypes"})
@Override
public Class extends Set> getImplementationType() {
return LinkedHashSet.class;
}
}