public static BooleanValue frozen(boolean value) {
        BooleanValue booleanValue = new BooleanValue(value);
        booleanValue.freeze();
        return booleanValue;
    }
Create a boolean value which is frozen at the outset.
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/BooleanValue.java