public class MapBuilder extends Object implements JexlArithmetic.MapBuilder
Modifier and Type | Field and Description |
---|---|
protected Map<Object,Object> |
map
The map being created.
|
Constructor and Description |
---|
MapBuilder(int size)
Creates a new builder.
|
public MapBuilder(int size)
size
- the expected map sizepublic void put(Object key, Object value)
JexlArithmetic.MapBuilder
put
in interface JexlArithmetic.MapBuilder
key
- the map entry keyvalue
- the map entry valuepublic Object create()
JexlArithmetic.MapBuilder
create
in interface JexlArithmetic.MapBuilder
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.