public class SafeMerger extends Object
Constructor and Description |
---|
SafeMerger() |
Modifier and Type | Method and Description |
---|---|
SafeMerger |
email(String... fieldNames) |
List<io.stallion.requests.validators.SafeMerger.OneParam> |
getParams() |
<T> T |
merge(T newValues) |
<T> T |
merge(T newValues,
T dest) |
<T> T |
mergeMap(Map<String,Object> newValues,
Class<? extends T> destClass) |
<T> T |
mergeMap(Map<String,Object> newValues,
T dest) |
SafeMerger |
minLength(int minLength,
String... fieldNames) |
SafeMerger |
nonEmpty(String... fieldNames) |
SafeMerger |
nonNull(String... fieldNames) |
SafeMerger |
optional(String... fieldNames) |
SafeMerger |
optionalEmail(String... fieldNames) |
SafeMerger |
patterns(Pattern pattern,
String... fieldNames) |
SafeMerger |
setParams(List<io.stallion.requests.validators.SafeMerger.OneParam> params) |
static SafeMerger |
with() |
public SafeMerger()
public static SafeMerger with()
public SafeMerger nonNull(String... fieldNames)
public SafeMerger nonEmpty(String... fieldNames)
public SafeMerger email(String... fieldNames)
public SafeMerger minLength(int minLength, String... fieldNames)
public SafeMerger patterns(Pattern pattern, String... fieldNames)
public SafeMerger optional(String... fieldNames)
public SafeMerger optionalEmail(String... fieldNames)
public <T> T merge(T newValues, T dest)
public <T> T merge(T newValues)
public SafeMerger setParams(List<io.stallion.requests.validators.SafeMerger.OneParam> params)
Copyright © 2016. All rights reserved.