JBoss Modular Service Container 1.2.2.Final
- java.lang.Object
-
- org.jboss.msc.value.CachedValue<T>
-
- Type Parameters:
T
- the value type
- All Implemented Interfaces:
- Value<T>
public final class CachedValue<T>
extends java.lang.Object
implements Value<T>
A value which is calculated once only. After the initial calculation, the result is cached and returned.
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors
Constructor and Description |
CachedValue(Value<? extends T> value)
Construct a new instance.
|
-
Method Summary
Methods
Modifier and Type |
Method and Description |
T |
getValue()
Get the actual value.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
JBoss Modular Service Container 1.2.2.Final
Copyright © 2012 JBoss, a division of Red Hat, Inc.