Class DefaultCreditor

  • All Implemented Interfaces:
    ICreditor
    Direct Known Subclasses:
    Citizen

    public class DefaultCreditor
    extends java.lang.Object
    implements ICreditor
    Default implementation of a creditor, which does nothing with the recieved money.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2015 Created on Apr 24, 2015
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultCreditor()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void receiveSum​(long amount)
      Handle method for recieving a payment
      • Methods inherited from class java.lang.Object

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

      • DefaultCreditor

        public DefaultCreditor()
    • Method Detail

      • receiveSum

        public void receiveSum​(long amount)
        Description copied from interface: ICreditor
        Handle method for recieving a payment
        Specified by:
        receiveSum in interface ICreditor
        Parameters:
        amount - paid money amount.