com.atlassian.bamboo.configuration
Class ConfigurationMapImpl

java.lang.Object
  extended by com.google.common.collect.ForwardingObject
      extended by com.google.common.collect.ForwardingMap<java.lang.String,java.lang.String>
          extended by com.atlassian.bamboo.configuration.ConfigurationMapImpl
All Implemented Interfaces:
ConfigurationMap, java.util.Map<java.lang.String,java.lang.String>

public final class ConfigurationMapImpl
extends com.google.common.collect.ForwardingMap<java.lang.String,java.lang.String>
implements ConfigurationMap

A delegating Map implementation with type converters


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap
com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
ConfigurationMapImpl()
           
ConfigurationMapImpl(java.util.Map<java.lang.String,java.lang.String> map)
           
 
Method Summary
protected  java.util.Map<java.lang.String,java.lang.String> delegate()
           
 boolean getAsBoolean(java.lang.String key)
          Returns the value with the specified key as Boolean
 long getAsLong(java.lang.String key)
          Returns the value with the specified key as Long
 
Methods inherited from class com.google.common.collect.ForwardingMap
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEntrySet, standardEquals, standardHashCode, standardIsEmpty, standardKeySet, standardPutAll, standardRemove, standardToString, standardValues, values
 
Methods inherited from class com.google.common.collect.ForwardingObject
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ConfigurationMapImpl

public ConfigurationMapImpl(java.util.Map<java.lang.String,java.lang.String> map)

ConfigurationMapImpl

public ConfigurationMapImpl()
Method Detail

delegate

protected java.util.Map<java.lang.String,java.lang.String> delegate()
Overrides:
delegate in class com.google.common.collect.ForwardingMap<java.lang.String,java.lang.String>

getAsBoolean

public boolean getAsBoolean(java.lang.String key)
Description copied from interface: ConfigurationMap
Returns the value with the specified key as Boolean

Specified by:
getAsBoolean in interface ConfigurationMap
Returns:
value as boolean

getAsLong

public long getAsLong(java.lang.String key)
               throws java.lang.NumberFormatException
Description copied from interface: ConfigurationMap
Returns the value with the specified key as Long

Specified by:
getAsLong in interface ConfigurationMap
Returns:
value as long
Throws:
java.lang.NumberFormatException


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.