Package nxt
Class Exchange
- java.lang.Object
-
- nxt.Exchange
-
public final class Exchange extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExchange.Event
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaddListener(Listener<Exchange> listener, Exchange.Event eventType)static DbIterator<Exchange>getAccountCurrencyExchanges(long accountId, long currencyId, int from, int to)static DbIterator<Exchange>getAccountExchanges(long accountId, int from, int to)static DbIterator<Exchange>getAllExchanges(int from, int to)longgetBlockId()longgetBuyerId()static intgetCount()static DbIterator<Exchange>getCurrencyExchanges(long currencyId, int from, int to)longgetCurrencyId()static intgetExchangeCount(long currencyId)static DbIterator<Exchange>getExchanges(long transactionId)intgetHeight()static java.util.List<Exchange>getLastExchanges(long[] currencyIds)static DbIterator<Exchange>getOfferExchanges(long offerId, int from, int to)longgetOfferId()longgetRate()longgetSellerId()intgetTimestamp()longgetTransactionId()longgetUnits()static booleanremoveListener(Listener<Exchange> listener, Exchange.Event eventType)java.lang.StringtoString()
-
-
-
Method Detail
-
getAllExchanges
public static DbIterator<Exchange> getAllExchanges(int from, int to)
-
getCount
public static int getCount()
-
addListener
public static boolean addListener(Listener<Exchange> listener, Exchange.Event eventType)
-
removeListener
public static boolean removeListener(Listener<Exchange> listener, Exchange.Event eventType)
-
getCurrencyExchanges
public static DbIterator<Exchange> getCurrencyExchanges(long currencyId, int from, int to)
-
getLastExchanges
public static java.util.List<Exchange> getLastExchanges(long[] currencyIds)
-
getAccountExchanges
public static DbIterator<Exchange> getAccountExchanges(long accountId, int from, int to)
-
getAccountCurrencyExchanges
public static DbIterator<Exchange> getAccountCurrencyExchanges(long accountId, long currencyId, int from, int to)
-
getExchanges
public static DbIterator<Exchange> getExchanges(long transactionId)
-
getOfferExchanges
public static DbIterator<Exchange> getOfferExchanges(long offerId, int from, int to)
-
getExchangeCount
public static int getExchangeCount(long currencyId)
-
getTransactionId
public long getTransactionId()
-
getBlockId
public long getBlockId()
-
getOfferId
public long getOfferId()
-
getSellerId
public long getSellerId()
-
getBuyerId
public long getBuyerId()
-
getUnits
public long getUnits()
-
getRate
public long getRate()
-
getCurrencyId
public long getCurrencyId()
-
getTimestamp
public int getTimestamp()
-
getHeight
public int getHeight()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-