Android Relationship - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Relationship class.

This code example shows how to use the following methods:getSourceUserId, getSourceUserScreenName, getTargetUserId, getTargetUserScreenName
        if (this == o) return true;
        if (!(o instanceof Relationship)) return false;
 
        Relationship that = (Relationship) o;
 
        if (sourceUserId != that.getSourceUserId()) return false;
        if (targetUserId != that.getTargetUserId()) return false;
        if (!sourceUserScreenName.equals(that.getSourceUserScreenName()))
            return false; 
        if (!targetUserScreenName.equals(that.getTargetUserScreenName()))
            return false; 
 
        return true; 
    } 
 
    @Override 
    public int hashCode() { 
        int result = (int) (targetUserId ^ (targetUserId >>> 32));
        result = 31 * result + (targetUserScreenName != null ? targetUserScreenName.hashCode() : 0);
        result = 31 * result + (sourceBlockingTarget ? 1 : 0);
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
See Code Examples for Android Relationship Methods: