Code example for Pair

0
  public void setSystemFeature(String name, boolean supported) {
    systemFeatureList.put(name, supported);
  } 
 
  public void addDrawableResolution(String packageName, int resourceId, Drawable drawable) {
    drawables.put(new Pair(packageName, resourceId), drawable);
  } 
 
  public class ComponentState { 
    public int newState;
    public int flags;
 
    public ComponentState(int newState, int flags) {
      this.newState = newState;
      this.flags = flags;
    } 
  } 
 
  @Override 
  public Drawable getDrawable(String packageName, int resourceId, ApplicationInfo applicationInfo) {
    return drawables.get(new Pair(packageName, resourceId));