net.sf.eos.util.functions
Class DefaultValueConfigurationKeyFunction

java.lang.Object
  extended by net.sf.eos.util.functions.DefaultValueConfigurationKeyFunction
All Implemented Interfaces:
Function<ConfigurationKey,String>

@Experimental
public class DefaultValueConfigurationKeyFunction
extends Object
implements Function<ConfigurationKey,String>

The function returns the default value of a ConfigurationKey.

Since:
0.1.0
Author:
Sascha Kohlmann
See Also:
ConfigurationKeyIntrospectorFunction

Constructor Summary
DefaultValueConfigurationKeyFunction()
           
 
Method Summary
 String apply(ConfigurationKey from)
          Returns the default value of a ConfigurationKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.eos.Function
equals
 

Constructor Detail

DefaultValueConfigurationKeyFunction

public DefaultValueConfigurationKeyFunction()
Method Detail

apply

public String apply(@Nullable
                    ConfigurationKey from)
Returns the default value of a ConfigurationKey.

Specified by:
apply in interface Function<ConfigurationKey,String>
Parameters:
from - the configuration key instance
Returns:
the default value. Maybe null


Copyright © 2008. All Rights Reserved.