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

org.joo.libra.common.SimpleHasValue Maven / Gradle / Ivy

There is a newer version: 2.1.2
Show newest version
package org.joo.libra.common;

import org.joo.libra.PredicateContext;

/**
 * Simple implementation of {@link org.joo.libra.common.HasValue}
 * 
 * @author griever
 *
 * @param 
 *            the class type of the value
 */
public class SimpleHasValue implements HasValue {

	private T value;

	public SimpleHasValue(final T value) {
		this.value = value;
	}

	@Override
	public T getValue(final PredicateContext context) {
		return value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy