public class RandomElementFromSetSanitizer extends Object implements ValueSanitizer
| Constructor and Description |
|---|
RandomElementFromSetSanitizer(Object... elements) |
| Modifier and Type | Method and Description |
|---|---|
static Object |
pickAny(Object... elements) |
Object |
sanitize(Object originalValue,
String rowId,
String propertyName)
sanitizes an originalValue, which is potentially sensitive, to a sanitized version, which
is not sensitive
|
public RandomElementFromSetSanitizer(Object... elements)
public Object sanitize(Object originalValue, String rowId, String propertyName)
ValueSanitizersanitize in interface ValueSanitizeroriginalValue - original value, which may be sensitiverowId - if available, unique id identifying the row on which this value sitspropertyName - name of the propertyCopyright © 2021. All rights reserved.