
fr.vergne.translation.util.impl.ConstantReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of translation-core Show documentation
Show all versions of translation-core Show documentation
Basic features to support a translation project.
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