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

net.amygdalum.util.text.ByteAutomaton Maven / Gradle / Ivy

The newest version!
package net.amygdalum.util.text;

import java.util.Collections;
import java.util.Iterator;

public interface ByteAutomaton extends Iterable {

	@SuppressWarnings("rawtypes")
	public static final ByteAutomaton NULL = new ByteAutomaton() {

		@Override
		public Iterator iterator() {
			return Collections.emptyIterator();
		}

		@Override
		public void reset() {
		}

		@Override
		public boolean lookahead(byte b) {
			return false;
		}

		@Override
		public boolean accept(byte b) {
			return false;
		}

		@Override
		public boolean hasAttachments() {
			return false;
		}
		
	};

	void reset();

	boolean lookahead(byte b);
	boolean accept(byte b);

	boolean hasAttachments();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy