public class RandomInstanceFromInterfaceRandomGenerator extends Object
| Constructor and Description |
|---|
RandomInstanceFromInterfaceRandomGenerator() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
doGenerate(Class<T> clazz)
This method returns a random instance for a given interface.
|
static RandomInstanceFromInterfaceRandomGenerator |
getInstance() |
public RandomInstanceFromInterfaceRandomGenerator()
public static RandomInstanceFromInterfaceRandomGenerator getInstance()
public <T> T doGenerate(Class<T> clazz)
T - The type to generate an instance of.clazz - The interface to generate the implementations on.Copyright © 2010–2019. All rights reserved.