All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sksamuel.jqm4gwt.form.validators.NotEqualValueValidator Maven / Gradle / Ivy

package com.sksamuel.jqm4gwt.form.validators;

import com.google.gwt.user.client.ui.HasValue;

public class NotEqualValueValidator extends CompareStringValueValidator {

    public NotEqualValueValidator(HasValue hasValue1, HasValue hasValue2, String msg) {
        super(hasValue1, hasValue2, msg);
    }

    @Override
    protected boolean areValuesValid(String val1, String val2) {
        return !val1.equals(val2);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy