/** * Returns a new NestableFieldValidator for a Map of key to val. * * @param key the Class of keys in the map * @param val the Class of values in the map * @param nullAllowed whether or not a value of null is valid * @return a NestableFieldValidator for a Map of key to val */ public static NestableFieldValidator mapFv(Class key, Class val, boolean nullAllowed) { return mapFv(fv(key, false), fv(val, false), nullAllowed); }
/** * Returns a new NestableFieldValidator for a List of the given Class. * * @param cls the Class of elements composing the list * @param nullAllowed whether or not a value of null is valid * @return a NestableFieldValidator for a list of the given class */ public static NestableFieldValidator listFv(Class cls, boolean nullAllowed) { return listFv(fv(cls, false), nullAllowed); }
/** * Returns a new NestableFieldValidator for a Map of key to val. * * @param key the Class of keys in the map * @param val the Class of values in the map * @param nullAllowed whether or not a value of null is valid * @return a NestableFieldValidator for a Map of key to val */ public static NestableFieldValidator mapFv(Class key, Class val, boolean nullAllowed) { return mapFv(fv(key, false), fv(val, false), nullAllowed); }
/** * Returns a new NestableFieldValidator for a List of the given Class. * * @param cls the Class of elements composing the list * @param nullAllowed whether or not a value of null is valid * @return a NestableFieldValidator for a list of the given class */ public static NestableFieldValidator listFv(Class cls, boolean nullAllowed) { return listFv(fv(cls, false), nullAllowed); }