/** * This is a convenience method for {@link #checkNotEmpty(Map, String)}, * {@link #checkKeysNotNull(Map, String)}, and {@link #checkValuesNotNull(Map, String)}. * * @return the validated map reference */ @FullyTested public static <TKey, TValue, TMap extends Map<TKey, TValue>> TMap checkNotEmptyAndKeysAndValuesNotNull(TMap ref, String argName) { checkNotEmpty(ref, argName); checkKeysNotNull(ref, argName); checkValuesNotNull(ref, argName); return ref; } }
/** * This is a convenience method for {@link #checkKeysNotNull(Map, String)} and * {@link #checkValuesNotNull(Map, String)}. * * @return the validated map reference */ @FullyTested public static <TKey, TValue, TMap extends Map<TKey, TValue>> TMap checkKeysAndValuesNotNull(TMap ref, String argName) { checkKeysNotNull(ref, argName); checkValuesNotNull(ref, argName); return ref; }
/** * This is a convenience method for {@link #checkNotEmpty(Map, String)} and * {@link #checkValuesNotNull(Map, String)}. * * @return the validated map reference */ @FullyTested public static <TKey, TValue, TMap extends Map<TKey, TValue>> TMap checkNotEmptyAndValuesNotNull(TMap ref, String argName) { checkNotEmpty(ref, argName); checkValuesNotNull(ref, argName); return ref; }
/** * This is a convenience method for {@link #checkNotEmpty(Map, String)} and * {@link #checkKeysNotNull(Map, String)}. * * @return the validated map reference */ @FullyTested public static <TKey, TValue, TMap extends Map<TKey, TValue>> TMap checkNotEmptyAndKeysNotNull(TMap ref, String argName) { checkNotEmpty(ref, argName); checkKeysNotNull(ref, argName); return ref; }