public static int getInt(@NonNull final Context context, @AttrRes final int resourceId,
                             final int defaultValue) {
        return getInt(context, -1, resourceId, defaultValue);
    }
public static int getInt ( @ NonNull final Context context , @ AttrRes final int resourceId , final int defaultValue ) { return getInt ( context , - 1 , resourceId , defaultValue ) ; }
Obtains the integer value, which corresponds to a specific resource id, from a context's
theme.

@param context
The context, which should be used, as an instance of the class {@link Context}. The
context may not be null
@param resourceId
The resource id of the attribute, which should be obtained, as an {@link Integer}
value. The resource id must corresponds to a valid theme attribute
@param defaultValue
The default value, which should be returned, if the given resource id is invalid, as
an {@link Integer} value
@return The integer value, which has been obtained, as an {@link Integer} value or 0, if the
given resource id is invalid