class HllSketchIsLessThan extends KoryphePredicate<HllSketch> {

    @Override
    public boolean test(final HllSketch input) {
        if (null == input) {
            return false;
        }
        final long cardinality = Math.round(input.getEstimate());
        if (orEqualTo) {
            return cardinality <= controlValue;
        } else {
            return cardinality < controlValue;
        }
    }

    public  HllSketchIsLessThan();
    public  HllSketchIsLessThan(final long controlValue);
    public  HllSketchIsLessThan(final long controlValue, final boolean orEqualTo);

}