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

se.jbee.inject.util.Value Maven / Gradle / Ivy

There is a newer version: 0.6
Show newest version
/*
 *  Copyright (c) 2012, Jan Bernitt 
 *			
 *  Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
 */
package se.jbee.inject.util;

import se.jbee.inject.Type;

public final class Value {

	public static  Value value( Type type, T value ) {
		return new Value( type, value );
	}

	private final Type type;
	private final T value;

	private Value( Type type, T value ) {
		super();
		this.type = type;
		this.value = value;
	}

	public Type getType() {
		return type;
	}

	public T getValue() {
		return value;
	}

	@Override
	public String toString() {
		return type + " " + value;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy