public static RelationalPredicate fromWire(String predicateString) {
        // Make sure we try to match e.g. "<=" before "<" as the prefix of predicateString.
        List<RelationalOperator> operatorsByDecendingLength = Stream.of(RelationalOperator.values())
                .sorted(Comparator.comparing(operator -> - operator.toText().length()))
                .toList();

        for (var operator : operatorsByDecendingLength) {
            if (predicateString.startsWith(operator.toText())) {
                String suffix = predicateString.substring(operator.toText().length()).trim();
                return new RelationalPredicate(predicateString, operator, suffix);
            }
        }

        throw new IllegalArgumentException("Predicate string '" + predicateString + "' does not start with a relation operator");
    }
@param predicateString is e.g. "&gt; SUFFIX" or "&lt;=SUFFIX". The first part is {@link RelationalOperator}.
flags/src/main/java/com/yahoo/vespa/flags/json/RelationalPredicate.java