* @param comparator
* the comparator, may be null
*/
protected ComparisonBinaryPredicate(Comparator comparator) {
if (!(comparator instanceof NullSafeComparator)) {
this.comparator = new NullSafeComparator(comparator, true);
}
else {
this.comparator = comparator;
}
}