JBoss Modular Service Kernel API 1.0.0.CR2

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

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

public final class ListValue<T>
extends Object
implements Value<List<T>>

A list value.

Author:
David M. Lloyd

Constructor Summary
ListValue(List<? extends Value<? extends T>> values)
          Construct a new instance.
 
Method Summary
 List<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

ListValue

public ListValue(List<? extends Value<? extends T>> values)
Construct a new instance.

Parameters:
values - the list of values with which to populate the list
Method Detail

getValue

public List<T> getValue()
                 throws IllegalStateException
Get the actual value.

Specified by:
getValue in interface Value<List<T>>
Returns:
the actual value
Throws:
IllegalStateException - if the value is time-sensitive and the current state does not allow retrieval.

JBoss Modular Service Kernel API 1.0.0.CR2

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