public boolean equals()

in stack/corepersistence/queryindex/src/main/java/org/apache/usergrid/persistence/index/CandidateResult.java [121:169]


    public boolean equals( final Object o ) {
        if ( this == o ) {
            return true;
        }
        if ( o == null ) {
            return false;
        }
        if ( !( o instanceof CandidateResult ) ) {
            return false;
        }

        final CandidateResult that = ( CandidateResult ) o;

        if ( entityId == null && that.entityId != null) {
            return false;
        }
        if ( entityId != null && !entityId.equals( that.entityId ) ) {
            return false;
        }
        if ( entityVersion == null && that.entityVersion != null) {
            return false;
        }
        if ( entityVersion != null && !entityVersion.equals( that.entityVersion ) ) {
            return false;
        }
        if ( docId == null && that.docId != null) {
            return false;
        }
        if ( docId != null && !docId.equals( that.docId ) ) {
            return false;
        }
        if ( directEntityUUID != that.directEntityUUID ) {
            return false;
        }
        if ( directEntityName == null && that.directEntityName != null) {
            return false;
        }
        if ( directEntityName != null && !directEntityName.equals( that.directEntityName ) ) {
            return false;
        }
        if ( directEntityType == null && that.directEntityType != null) {
            return false;
        }
        if ( directEntityType != null && !directEntityType.equals( that.directEntityType ) ) {
            return false;
        }

        return true;
    }