JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.value
Class ImmediateValue<T>

java.lang.Object
  extended by org.jboss.msc.value.ImmediateValue<T>
Type Parameters:
T - the value type
All Implemented Interfaces:
Value<T>

public final class ImmediateValue<T>
extends Object
implements Value<T>

A simple immediately-available value.

Author:
David M. Lloyd

Constructor Summary
ImmediateValue(T value)
          Construct a new instance.
 
Method Summary
 T getValue()
          Get the actual value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmediateValue

public ImmediateValue(T value)
Construct a new instance.

Parameters:
value - the value to return
Method Detail

getValue

public T getValue()
Get the actual value.

Specified by:
getValue in interface Value<T>
Returns:
the actual value

JBoss Modular Service Kernel API 1.0.0.CR2

Copyright © 2011 JBoss, a division of Red Hat, Inc.