public abstract class AbstractTypeRandomAdapter<T> extends Object implements TypeRandomAdapter<T>
| Constructor and Description |
|---|
AbstractTypeRandomAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAdapterNames() |
Class<?> |
getValueType() |
T |
randomValue(String propertyName) |
protected abstract T |
randomValueDefault(String propertyName) |
protected void |
registerPropertyAdapter(PropertyRandomAdapter<T>... valueAdapters) |
protected static final Random RANDOM
public T randomValue(String propertyName)
randomValue in interface TypeRandomAdapter<T>propertyName - Model property namepublic Class<?> getValueType()
getValueType in interface TypeRandomAdapter<T>@SafeVarargs protected final void registerPropertyAdapter(PropertyRandomAdapter<T>... valueAdapters)
Copyright © 2018 Mario Tema. All rights reserved.