private int getBorderColor(Context context) {
        if (this.mBorderColorResource != 0) {
            return ContextCompat.getColor(context, mBorderColorResource);
        } else if (!TextUtils.isEmpty(mBorderColorCode)) {
            return Color.parseColor(mBorderColorCode);
        } else {
            return mBorderColor;
        }
    }
private int getBorderColor ( Context context ) { if ( this . mBorderColorResource != 0 ) { return ContextCompat . getColor ( context , mBorderColorResource ) ; } else if ( ! TextUtils . isEmpty ( mBorderColorCode ) ) { return Color . parseColor ( mBorderColorCode ) ; } else { return mBorderColor ; } }
@param context to fetch color
@return border color