makeBinaryInterval

fun makeBinaryInterval(min: BytesRef?, minInclusive: Boolean, max: BytesRef?, maxInclusive: Boolean): Automaton

Creates a new deterministic, minimal automaton accepting all binary terms in the specified interval. Note that unlike .makeDecimalInterval, the returned automaton is infinite, because terms behave like floating point numbers leading with a decimal point. However, in the special case where min == max, and both are inclusive, the automata will be finite and accept exactly one term.