All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.robolectric.res.ResourceIndex Maven / Gradle / Ivy

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