redef fun clone
do
var res = new ArrayMap[K,E]
- res.recover_with self
+ res.add_all self
return res
end
end
# Build a list filled with the items of `coll`.
init from(coll: Map[K, V]) do
init
- recover_with(coll)
+ add_all(coll)
end
redef var keys: RemovableCollection[K] = new HashMapKeys[K, V](self) is lazy
redef class JsonObject
# Inits `self` from a BSON object.
- private init from_bson(bson: BSON) do recover_with(bson.to_json)
+ private init from_bson(bson: BSON) do add_all(bson.to_json)
# Returns a new BSON object from `self`.
private fun to_bson: BSON do return new BSON.from_json(self)
var rel_type = json_edge["type"].as(String)
var json_properties = json_edge["properties"].as(JsonObject)
var edge = new NeoEdge(from, rel_type, to)
- edge.properties.recover_with(json_properties)
+ edge.properties.add_all(json_properties)
edges.add edge
end
end
var labels = o["labels"].as(JsonArray)
for lab in labels do self.labels.add(lab.as(String))
var json_properties = o["properties"].as(JsonObject)
- properties.recover_with(json_properties)
+ properties.add_all(json_properties)
end
redef fun to_json do return to_json_by_append
var parse_url = parse_url
http_request.get_args = parse_url
- http_request.all_args.recover_with parse_url
+ http_request.all_args.add_all parse_url
else
http_request.uri = first_line[1]
end
if prefix_table != null then
var old_prefix_table = prefix_table.as(not null)
prefix_table = new HashMap[String, String]
- prefix_table.recover_with(old_prefix_table)
+ prefix_table.add_all(old_prefix_table)
else
prefix_table = new HashMap[String, String]
end