public static Validator<CharSequence> equal(@NonNull final Context context,
                                                @StringRes final int resourceId,
                                                @NonNull final EditText editText) {
        return new EqualValidator(context, resourceId, editText);
    }
public static Validator < CharSequence > equal ( @ NonNull final Context context , @ StringRes final int resourceId , @ NonNull final EditText editText ) { return new EqualValidator ( context , resourceId , editText ) ; }
Creates and returns a validator, which allows to validate texts to ensure, that they are
equal to the text, which is contained by an {@link EditText} widget.

@param context
The context, which should be used to retrieve the error message, as an instance of
the class {@link Context}. The context may not be null
@param resourceId
The resource ID of the string resource, which contains the error message, which
should be set, as an {@link Integer} value. The resource ID must correspond to a
valid string resource
@param editText
The edit text widget, which contains the content, the texts should be equal to, as an
instance of the class {@link EditText}. The widget may not be null
@return The validator, which has been created, as an instance of the type {@link Validator}