public class BannedGenerator extends java.lang.Object implements InstanceProvider
Constructor and Description |
---|
BannedGenerator(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
Construct a generator that ensures any class that matches the given matcher is never constructed.
|
BannedGenerator(java.lang.Class<?>... classes) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
create(java.lang.Class<?> type)
Create an instance given a type, if possible.
|
public BannedGenerator(AbstractFuzzyMatcher<java.lang.Class<?>> classMatcher)
classMatcher
- - a class matcher.public BannedGenerator(java.lang.Class<?>... classes)
public java.lang.Object create(@Nullable java.lang.Class<?> type)
InstanceProvider
create
in interface InstanceProvider
type
- - type to create.