Class Credit

  • All Implemented Interfaces:
    java.io.Serializable

    public class Credit
    extends java.lang.Object
    implements java.io.Serializable
    This class provides a simple model for a credit contract (or a loan). It is basically defines as remaining crediting amount to date, credit remaining term, APR and annual probability on default. Although this model is simplified for the purpose of this example, it is close enough to emulate the real-life credit risk assessment application.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Credit​(double remAmnt, int remTerm, double apr, double edf)
      Creates new credit instance with given information.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Credit

        public Credit​(double remAmnt,
                      int remTerm,
                      double apr,
                      double edf)
        Creates new credit instance with given information.
        Parameters:
        remAmnt - Remained crediting amount.
        remTerm - Remained crediting remTerm.
        apr - Annual percentage rate (APR).
        edf - Expected annual probability of default (EaDF).
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object