JBoss Modular Service Kernel API 1.0.0.CR2

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

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

public final class SetValue<T>
extends Object
implements Value<Set<T>>

A set value.

Author:
David M. Lloyd

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

SetValue

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

Parameters:
values - the values to add to the set
Method Detail

getValue

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

Specified by:
getValue in interface Value<Set<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.