public void forEachTerminalEncoderState(final Consumer<State> consumer)
    {
        terminalEncoderStates.forEach(consumer);
    }
Iterates over the states in which a codec is fully encoded.
@param consumer the consumer of the states.
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/common/FieldPrecedenceModel.java