
org.robolectric.res.ResourceIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of robolectric-resources Show documentation
Show all versions of robolectric-resources Show documentation
An alternative Android testing framework.
package org.robolectric.res;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public abstract class ResourceIndex {
protected final Map resourceNameToId = new HashMap<>();
protected final Map resourceIdToResName = new HashMap<>();
public abstract Integer getResourceId(ResName resName);
public String getResourceName(int resourceId) {
ResName resName = getResName(resourceId);
return (resName != null) ? resName.getFullyQualifiedName() : null;
}
public abstract ResName getResName(int resourceId);
public abstract Collection getPackages();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy