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

org.nutz.el.parse.CharQueue Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
package org.nutz.el.parse;

/**
 * 字符队列, 主要是为了解决reader 中使用的 cursor 临时变量的问题.
 * @author juqkai([email protected])
 *
 */
public interface CharQueue {
	/**
	 * 不删除字符的情况下读取第一个字符
	 */
	char peek();
	/**
	 * 不删除字符的情况下读取第ofset个字符,
	 * @param ofset 偏移量
	 */
	char peek(int ofset);
	/**
	 * 读取字符,并删除字符
	 */
	char poll();
	/**
	 * 是否为空
	 */
	boolean isEmpty();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy