Example usage for android.graphics.drawable Drawable hashCode

List of usage examples for android.graphics.drawable Drawable hashCode

Introduction

In this page you can find the example usage for android.graphics.drawable Drawable hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:org.kde.necessitas.ministro.ExtractStyle.java

void addDrawableItemIfNotExists(JSONObject json, ArrayList<Integer> list, Drawable item, String[] states,
        String filename) {/*ww  w  .  j ava  2  s .c  om*/
    for (Integer it : list) {
        if (it.equals(item.hashCode()))
            return;
    }
    list.add(item.hashCode());
    try {
        json.put(getStatesName(states), getDrawable(item, getFileName(filename, states)));
    } catch (JSONException e) {
        e.printStackTrace();
    }
}