com.kenshoo.pl.entity.equalityfunctions.EmptyAsNullStringEqualityFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity.equalityfunctions;
import com.google.common.base.Strings;
/**
* Created by yuvalr on 5/22/16.
*/
public class EmptyAsNullStringEqualityFunction implements EntityValueEqualityFunction {
public static final EmptyAsNullStringEqualityFunction INSTANCE = new EmptyAsNullStringEqualityFunction();
@Override
public Boolean apply(String s, String s2) {
return Strings.nullToEmpty(s).equals(Strings.nullToEmpty(s2));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy