All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.jalasoft.expression.czech.input.StringInputSystem Maven / Gradle / Ivy

Go to download

This project provides an easy way of reading boolean expressions written in Czech language

There is a newer version: 1.0.2
Show newest version
package com.github.jalasoft.expression.czech.input;

import java.util.Optional;

public final class StringInputSystem implements InputSystem {

    private final String input;
    private int index;

    public StringInputSystem(String input) {
        this.input = input;
    }

    @Override
    public Optional nextSymbol() {
        if (index >= input.length()) {
            return Optional.empty();
        }

        return Optional.of(input.charAt(index++));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy