org.codehaus.plexus.context.ContextMapAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-curves4 Show documentation
Show all versions of virtdata-lib-curves4 Show documentation
Statistical sampling library for use in virtdata libraries, based
on apache commons math 4
package org.codehaus.plexus.context;
import java.util.HashMap;
public class ContextMapAdapter
extends HashMap
{
private Context context;
public ContextMapAdapter( Context context )
{
this.context = context;
}
public Object get( Object key )
{
try
{
Object value = context.get( key );
if ( value instanceof String )
{
return value;
}
else
{
return null;
}
}
catch ( ContextException e )
{
return null;
}
}
}