app/src/main/java/org/andstatus/app/account/MyAccounts.java
/**
     * Return verified and autoSynced MyAccounts for Origin-s, where User of this Actor is known.
     * @param actor May be empty to search in any Origin
     * @return Empty Set if not found
     */
Return verified and autoSynced MyAccounts for Origin-s, where User of this Actor is known.
@param actor May be empty to search in any Origin
@return Empty Set if not found
Return verified and autoSynced MyAccounts for Origin - s where User of this Actor is known . @param actor May be empty to search in any Origin @return Empty Set if not found
@NonNull
    public Set<MyAccount> succeededForSameUser(Actor actor) {
        List<Origin> origins = actor.user.knownInOrigins(myContext);
        return origins.isEmpty()
                ? myAccounts.stream().filter(MyAccount::isValidAndSucceeded).collect(Collectors.toSet())
                : myAccounts.stream()
                    .filter(ma -> origins.contains(ma.getOrigin()))
                    .filter(MyAccount::isValidAndSucceeded)
                    .collect(Collectors.toSet());
    }
@ NonNull public Set < MyAccount > succeededForSameUser ( Actor actor ) { List < Origin > origins = actor . user . knownInOrigins ( myContext ) ; return origins . isEmpty ( ) ? myAccounts . stream ( ) . filter ( MyAccount :: isValidAndSucceeded ) . collect ( Collectors . toSet ( ) ) : myAccounts . stream ( ) . filter ( ma -> origins . contains ( ma . getOrigin ( ) ) ) . filter ( MyAccount :: isValidAndSucceeded ) . collect ( Collectors . toSet ( ) ) ; }
Return verified and autoSynced MyAccounts for Origin-s, where User of this Actor is known.
Return verified and autoSynced MyAccounts for Origin - s where User of this Actor is known .