se.jbee.inject.util.Value Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silk-di Show documentation
Show all versions of silk-di Show documentation
Silk Java dependency injection framework
/*
* 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