public boolean isEveryOwnedOutputSpent(TransactionBag transactionBag) {
        for (TransactionOutput output : outputs) {
            if (output.isAvailableForSpending() && output.isMineOrWatched(transactionBag))
                return false;
        }
        return true;
    }
public boolean isEveryOwnedOutputSpent ( TransactionBag transactionBag ) { for ( TransactionOutput output : outputs ) { if ( output . isAvailableForSpending ( ) && output . isMineOrWatched ( transactionBag ) ) return false ; } return true ; }
Returns false if this transaction has at least one output that is owned by the given wallet and unspent, true
otherwise.