api-impl: stubs and fixes for Compose Stopwatch and LibreSudoku

This commit is contained in:
Julian Winkler
2024-12-10 23:23:14 +01:00
parent b9272aa150
commit 1398125eb5
28 changed files with 238 additions and 36 deletions

View File

@@ -302,4 +302,25 @@ public class BaseBundle {
return null;
}
}
/**
* Returns the value associated with the given key, or null if
* no mapping of the desired type exists for the given key or a null
* value is explicitly associated with the key.
*
* @param key a String, or null
* @return an int[] value, or null
*/
public int[] getIntArray(String key) {
Object o = mMap.get(key);
if (o == null) {
return null;
}
try {
return (int[])o;
} catch (ClassCastException e) {
typeWarning(key, o, "int[]", e);
return null;
}
}
}