JBoss Modular Service Kernel API 1.0.0.CR2

org.jboss.msc.value
Class MapValue<K,V>

java.lang.Object
  extended by org.jboss.msc.value.MapValue<K,V>
Type Parameters:
K - the key type
V - the value type
All Implemented Interfaces:
Value<Map<K,V>>

public final class MapValue<K,V>
extends Object
implements Value<Map<K,V>>

A map value.

Author:
David M. Lloyd

Constructor Summary
MapValue(Value<? extends Map<K,V>> mapValue, List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
          Construct a new instance.
MapValue(Value<? extends Map<K,V>> mapValue, MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>... values)
          Construct a new instance.
 
Method Summary
 Map<K,V> 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

MapValue

public MapValue(Value<? extends Map<K,V>> mapValue,
                List<MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>> values)
Construct a new instance.

Parameters:
mapValue - the map value to add values to
values - the values to add

MapValue

public MapValue(Value<? extends Map<K,V>> mapValue,
                MapEntry<? extends Value<? extends K>,? extends Value<? extends V>>... values)
Construct a new instance.

Parameters:
mapValue - the map value to add values to
values - the values to add
Method Detail

getValue

public Map<K,V> getValue()
                  throws IllegalStateException
Get the actual value.

Specified by:
getValue in interface Value<Map<K,V>>
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.