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

fr.vergne.translation.util.impl.ConstantReader Maven / Gradle / Ivy

The newest version!
package fr.vergne.translation.util.impl;

import fr.vergne.translation.util.Reader;

/**
 * A {@link ConstantReader} is a {@link Reader} based on a constant value.
 * 
 * @author Matthieu VERGNE 
 * 
 * @param 
 */
public class ConstantReader implements Reader {

	private final Value value;

	public ConstantReader(Value value) {
		this.value = value;
	}

	@Override
	public Value read() {
		return value;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy