public static Wallet adaptWallet ( Map < String , ANXWallet > anxWallets ) { List < Balance > balances = new ArrayList <> ( ) ; for ( ANXWallet anxWallet : anxWallets . values ( ) ) { Balance balance = adaptBalance ( anxWallet ) ; if ( balance != null ) { balances . add ( balance ) ; } } return new Wallet ( balances ) ; }
Adapts a List of ANX Wallets to an XChange Wallet