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

org.unlaxer.Source Maven / Gradle / Ivy

package org.unlaxer;

import java.io.Serializable;

public interface Source extends Serializable{
	
	public RangedString peek(int startIndexInclusive, int length);
	
	public default RangedString peekLast(int endIndexInclusive, int length) {
		int start = endIndexInclusive-length;
		start = start <0 ? 0 : start;
		int end = endIndexInclusive - start+1;
		return peek(start , end);
	}
	
	public int getLength();
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy