Code example for Intent

Methods: getActiongetCategoriesgetComponentgetDatagetPackagegetType

0
    // cribbed from Android source 
    public boolean filterEquals(Intent other) {
        if (other == null) {
            return false; 
        } 
        if (getAction() != other.getAction()) {
            if (getAction() != null) { 
                if (!getAction().equals(other.getAction())) {
                    return false; 
                } 
            } else { 
                if (!other.getAction().equals(getAction())) {
                    return false; 
                } 
            } 
        } 
        if (getData() != other.getData()) {
            if (getData() != null) { 
                if (!getData().equals(other.getData())) {
                    return false; 
                } 
            } else { 
                if (!other.getData().equals(getData())) {
                    return false; 
                } 
            } 
        } 
        if (getType() != other.getType()) {
            if (getType() != null) { 
                if (!getType().equals(other.getType())) {
                    return false; 
                } 
            } else { 
                if (!other.getType().equals(getType())) {
                    return false; 
                } 
            } 
        } 
        if (getPackage() != other.getPackage()) {
            if (getPackage() != null) { 
                if (!getPackage().equals(other.getPackage())) {
                    return false; 
                } 
            } else { 
                if (!other.getPackage().equals(getPackage())) {
                    return false; 
                } 
            } 
        } 
        if (getComponent() != other.getComponent()) {
            if (getComponent() != null) { 
                if (!getComponent().equals(other.getComponent())) {
                    return false; 
                } 
            } else { 
                if (!other.getComponent().equals(getComponent())) {
                    return false; 
                } 
            } 
        } 
        if (getCategories() != other.getCategories()) {
            if (getCategories() != null) { 
                if (!getCategories().equals(other.getCategories())) {
                    return false; 
                } 
            } else { 
                if (!other.getCategories().equals(getCategories())) {
                    return false; 
                } 
            } 
        }