com.github.uscexp.blockformatpropertyfile.criteriastrategy.NotEqualNoCaseCriteriaStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of BlockFormatPropertyFile Show documentation
Show all versions of BlockFormatPropertyFile Show documentation
Property file in java style block format.
/*
* Copyright (C) 2014 by haui - all rights reserved
*/
package com.github.uscexp.blockformatpropertyfile.criteriastrategy;
import com.github.uscexp.blockformatpropertyfile.PropertyCondition;
/**
* @author haui
*
*/
public class NotEqualNoCaseCriteriaStrategy extends StringCriteriaStrategy {
public NotEqualNoCaseCriteriaStrategy(PropertyCondition propertyCondition) {
super(propertyCondition);
}
@Override
public boolean evaluate(Object value, Object object) {
validate(object);
return !((String) value).toLowerCase().equals(((String) object).toLowerCase());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy