public Relationship[] relationships(RelationshipFilter... filters){
  final HashSet<Relationship> collected=new LinkedHashSet<>();
  for (  final Collection<Relationship> rs : mRelationships.values()) {
    for (    final Relationship r : rs) {
      if (allAccepted(r,filters)) {
        collected.add(r);
      }
    }
  }
  return collected.toArray(new Relationship[collected.size()]);
}

public Relationship [ ] relationships ( RelationshipFilter ... filters ) { final HashSet < Relationship > collected = new LinkedHashSet < > ( ) ; for ( final Collection < Relationship > rs : mRelationships . values ( ) ) { for ( final Relationship r : rs ) { if ( allAccepted ( r , filters ) ) { collected . add ( r ) ; } } } return collected . toArray ( new Relationship [ collected . size ( ) ] ) ; }
get all relationships matching the supplied filters .
