Search in sources :

Example 11 with BString

use of org.ballerinalang.model.values.BString in project carbon-apimgt by wso2.

the class RemoveMapEntry method execute.

@Override
public BValue[] execute(Context context) {
    String key = getStringArgument(context, 0);
    MapManagerHolder.getInstance().getMapManager().remove(key);
    return getBValues(new BString(key));
}
Also used : BString(org.ballerinalang.model.values.BString) BString(org.ballerinalang.model.values.BString)

Aggregations

BString (org.ballerinalang.model.values.BString)11 BValue (org.ballerinalang.model.values.BValue)7 Test (org.testng.annotations.Test)5 BBoolean (org.ballerinalang.model.values.BBoolean)4 BJSON (org.ballerinalang.model.values.BJSON)2 CacheManager (javax.cache.CacheManager)1 MutableConfiguration (javax.cache.configuration.MutableConfiguration)1 Duration (javax.cache.expiry.Duration)1 ProgramFile (org.ballerinalang.util.codegen.ProgramFile)1 APIMThreatAnalyzer (org.wso2.carbon.apimgt.ballerina.threatprotection.analyzer.APIMThreatAnalyzer)1