fixed uniqueness validation and renamed the abstract class when empty values are valid

This commit is contained in:
2016-08-09 21:17:29 +02:00
parent c7873ef0ba
commit 7472c66823
11 changed files with 13 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
package ninja.javafx.smartcsv.validation;
/**
* validations based on this are not validated when the value is null or empty
*/
public abstract class EmptyValueIsValid implements Validation {
@Override
public boolean canBeChecked(String value) {
return value != null && !value.isEmpty();
}
}