Address implements Comparable<Address> { public Address() { super(); } Address();  Address(String address, byte[] pubKey, String encryptString, boolean isSyncComplete
            , boolean isFromXRandom);  Address(String address, byte[] pubKey, long sortTime, boolean isSyncComplete,
                   boolean isFromXRandom, boolean isTrashed, String encryptPrivKey); int txCount(); List<Tx> getRecentlyTxsWithConfirmationCntLessThan(int confirmationCnt, int limit); List<Tx> getTxs(); List<Tx> getTxs(int page); boolean isTrashed(); void setTrashed(boolean isTrashed, boolean fromDb); void setTrashed(boolean isTrashed); @Override int compareTo(@Nonnull Address address); void updateBalance(); long getBalance(); void notificatTx(Tx tx, Tx.TxNotificationType txNotificationType); void setBlockHeight(List<byte[]> txHashes, int height); boolean initTxs(List<Tx> txs); byte[] getPubKey(); String getAddress(); boolean hasPrivKey(); boolean isSyncComplete(); void setSyncComplete(boolean isSyncComplete); boolean isFromXRandom(); void updateSyncComplete(); @Override boolean equals(Object o); long getSortTime(); void setSortTime(long mSortTime); String getEncryptPrivKeyOfDb(); String getFullEncryptPrivKeyOfDb(); void recoverFromBackup(String encryptPriv); String getFullEncryptPrivKey(); Tx buildTx(List<Long> amounts, List<String> addresses); Tx buildTx(String changeAddress, List<Long> amounts, List<String> addresses); Tx buildTx(long amount, String address); Tx buildTx(long amount, String address, String changeAddress); List<Tx> getRecentlyTxs(int confirmationCnt, int limit); String getShortAddress(); List<String> signStrHashes(List<String> unsignedInHashes, CharSequence passphrase); List<byte[]> signHashes(List<byte[]> unsignedInHashes, CharSequence passphrase); String signMessage(String msg, CharSequence passphrase); void signTx(Tx tx, CharSequence passphrase); void completeInSignature(List<In> ins); int needCompleteInSignature(); long totalReceive(); boolean isHDM(); boolean isCompressed(); boolean removeTx(Tx tx); boolean isHDAccount(); String getAlias(); void setAlias(String alias); void updateAlias(String alias); void removeAlias(); int getVanityLen(); void setVanityLen(int vanityLen); void updateVanityLen(int vanityLen); void removeVanitylen(); boolean exsitsVanityLen(); static int VANITY_LEN_NO_EXSITS; static final String KEY_SPLIT_STRING; static final String PUBLIC_KEY_FILE_NAME_SUFFIX; }
@Test public void testAddress() { try { DumpedPrivateKey dumpedPrivateKey = new DumpedPrivateKey("L4rK1yDtCWekvXuE6oXD9jCYfFNV2cWRpVuPLBcCU2z8TrisoyY1"); ECKey ecKey = dumpedPrivateKey.getKey(); String addressStr = ecKey.toAddress(); assertEquals(ecKey.toAddress(), "1F3sAm6ZtwLAUnj7d38pGFxtP3RVEvtsbV"); } catch (AddressFormatException e) { e.printStackTrace(); } }