org.zeroexchange.mcredit.read
Class DefaultCreditLineReader

java.lang.Object
  extended by org.zeroexchange.mcredit.read.DefaultCreditLineReader
All Implemented Interfaces:
CreditLineReader

public class DefaultCreditLineReader
extends Object
implements CreditLineReader

Author:
black

Constructor Summary
DefaultCreditLineReader()
           
 
Method Summary
 BigDecimal getAvailableAmount(Collection<CreditLine> path)
          Returns available amount for the specified path.
 BigDecimal getAvailableAmount(CreditLine creditLine)
          Returns available amount for the specified line.
 CreditLine getComplemetaryCreditLine(CreditLine creditLine)
          Finds the complementary credit line.
 BigDecimal getMutualBalance(User user)
          Returns user's mutual credit status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCreditLineReader

public DefaultCreditLineReader()
Method Detail

getComplemetaryCreditLine

public CreditLine getComplemetaryCreditLine(CreditLine creditLine)
Finds the complementary credit line.

Specified by:
getComplemetaryCreditLine in interface CreditLineReader

getAvailableAmount

public BigDecimal getAvailableAmount(CreditLine creditLine)
Returns available amount for the specified line.

Specified by:
getAvailableAmount in interface CreditLineReader

getAvailableAmount

public BigDecimal getAvailableAmount(Collection<CreditLine> path)
Returns available amount for the specified path.

Specified by:
getAvailableAmount in interface CreditLineReader

getMutualBalance

public BigDecimal getMutualBalance(User user)
Returns user's mutual credit status.

Specified by:
getMutualBalance in interface CreditLineReader


Copyright © 2013. All Rights Reserved.