public final void setIcon ( @ NonNull final Context context , @ DrawableRes final int resourceId ) { Condition . INSTANCE . ensureNotNull ( context , "The context may not be null" ) ; this . icon = ContextCompat . getDrawable ( context , resourceId ) ; }
Sets the icon which should be shown if the validation fails .