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<java.util.Set<T>>

public final class SetValue<T>
extends java.lang.Object
implements Value<java.util.Set<T>>

A set value.

Author:
David M. Lloyd

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

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

getValue

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

Specified by:
getValue in interface Value<java.util.Set<T>>
Returns:
the actual value
Throws:
java.lang.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.