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

com.github.thorbenkuck.keller.nio.files.NativeLine Maven / Gradle / Ivy

package com.github.thorbenkuck.keller.nio.files;

final class NativeLine implements Line {

	private final int lineNumber;
	private final String content;

	NativeLine(int lineNumber, String content) {
		this.lineNumber = lineNumber;
		this.content = content;
	}

	@Override
	public final int getLineNumber() {
		return lineNumber;
	}

	@Override
	public final String getContent() {
		return content;
	}

	@Override
	public final String toString() {
		return getContent();
	}

	@Override
	public final String toReadable() {
		return "(" + getLineNumber() + "): " + getContent();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy