Returns a HashMap containing all entries or null if there's no entries

User has to manage local stack deallocation himself

var foo = new HashMap[JavaString, JavaObject]
# ...
for key, value in foo do
      key.delete_local_ref
      value.delete_local_ref
end

You should use Nit getters instead and get each value one by one

Property definitions

android $ SharedPreferences :: all
	# Returns a `HashMap` containing all entries or `null` if there's no entries
	#
	# User has to manage local stack deallocation himself
	#
	# ~~~nitish
	# var foo = new HashMap[JavaString, JavaObject]
	# # ...
	# for key, value in foo do
	#	  key.delete_local_ref
	#	  value.delete_local_ref
	# end
	# ~~~
	# *You should use Nit getters instead and get each value one by one*
	fun all: nullable HashMap[JavaString, JavaObject]
	do
		var hashmap = shared_preferences.get_all
		if hashmap.is_empty then return null
		return hashmap
	end
lib/android/shared_preferences/shared_preferences_api10.nit:202,2--220,4