        this.comparator = comparator;
        this.operator = operator;
    }

    @Override
    public boolean eval(T obj) {
        int c = comparator.compare(this.obj, obj);
        return operator.calc(c);