public class BannedGenerator extends Object implements InstanceProvider
| Constructor and Description |
|---|
BannedGenerator(AbstractFuzzyMatcher<Class<?>> classMatcher)
Construct a generator that ensures any class that matches the given matcher is never constructed.
|
BannedGenerator(Class<?>... classes) |
| Modifier and Type | Method and Description |
|---|---|
Object |
create(Class<?> type)
Create an instance given a type, if possible.
|
public BannedGenerator(AbstractFuzzyMatcher<Class<?>> classMatcher)
classMatcher - - a class matcher.public BannedGenerator(Class<?>... classes)
public Object create(@Nullable Class<?> type)
InstanceProvidercreate in interface InstanceProvidertype - - type to create.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.