|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jexl3.internal.MapBuilder
public class MapBuilder
Helper class to create map literals.
Field Summary | |
---|---|
protected Map<Object,Object> |
map
The map being created. |
Constructor Summary | |
---|---|
MapBuilder(int size)
Creates a new builder. |
Method Summary | |
---|---|
Object |
create()
Creates the actual "map" instance. |
void |
put(Object key,
Object value)
Adds a new entry to the map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Map<Object,Object> map
Constructor Detail |
---|
public MapBuilder(int size)
size
- the expected map sizeMethod Detail |
---|
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |