package org.allmyinfo.result;

import org.eclipse.jdt.annotation.NonNull;

public final class ValidStringResult implements StringResult
{
	private final String value;

	public ValidStringResult(final @NonNull String value)
	{
		this.value = value;
	}

	@Override
	public boolean isPresent()
	{
		return true;
	}

	@Override
	public boolean isValid()
	{
		return true;
	}

	@Override
	public String getValue()
	{
		return value;
	}
}