components/src/main/java/eu/internetofus/common/components/models/SocialNetworkRelationship.java
/**
   * Check if two social network relationships are equivalent by its identifier
   * fields.
   *
   * @param a first model to compare.
   * @param b second model to compare.
   *
   * @return {@code true} if the social network relationships can be considered
   *         equals by its identifier.
   */
Check if two social network relationships are equivalent by its identifier
fields.

@param a first model to compare.
@param b second model to compare.

@return  true if the social network relationships can be considered
equals by its identifier.
Check if two social network relationships are equivalent by its identifier fields . @param a first model to compare . @param b second model to compare . @return true if the social network relationships can be considered equals by its identifier .
public static boolean compareIds(final SocialNetworkRelationship a, final SocialNetworkRelationship b) {
    return a != null && b != null && a.type != null && a.type.equals(b.type) && a.appId != null
        && a.appId.equals(b.appId) && a.sourceId != null && a.sourceId.equals(b.sourceId) && a.targetId != null
        && a.targetId.equals(b.targetId);
  }
public static boolean compareIds ( final SocialNetworkRelationship a , final SocialNetworkRelationship b ) { return a != null && b != null && a . type != null && a . type . equals ( b . type ) && a . appId != null && a . appId . equals ( b . appId ) && a . sourceId != null && a . sourceId . equals ( b . sourceId ) && a . targetId != null && a . targetId . equals ( b . targetId ) ; }
Check if two social network relationships are equivalent by its identifier
 fields.
Check if two social network relationships are equivalent by its identifier fields .