Package org.basex.query.value.map
Class MapBuilder
java.lang.Object
org.basex.query.value.map.MapBuilder
A convenience class for building new maps.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinish()Returns the resulting map and invalidates the internal reference.voidAdds key/value strings to the map.voidAdds a key string and a value to the map.voidAdds a key/value pair to the map.
-
Constructor Details
-
MapBuilder
public MapBuilder()
-
-
Method Details
-
put
Adds a key/value pair to the map.- Parameters:
key- keyvalue- value- Throws:
QueryException- query exception
-
put
Adds a key string and a value to the map.- Parameters:
key- keyvalue- value- Throws:
QueryException- query exception
-
put
Adds key/value strings to the map.- Parameters:
key- keyvalue- value (can benull)- Throws:
QueryException- query exception
-
finish
Returns the resulting map and invalidates the internal reference.- Returns:
- map
-