Class Check

java.lang.Object
org.episteme.social.economics.money.Check
All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named

public final class Check extends Object implements ComprehensiveIdentification
Represents a paper check as a form of payment.

A check is a written order directing a bank to pay money from the emitter's account to the receiver.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Check

      public Check(Identification id, Account emitter, Organization receiver, TimeCoordinate emission, Money value)
      Creates a new Check.
      Parameters:
      emitter - the account issuing the check
      receiver - the organization receiving payment
      emission - the date/time of issue
      value - the check amount
      identification - unique check number
      Throws:
      NullPointerException - if any argument is null
    • Check

      public Check(Identification identification, Account emitter, Organization receiver, TimeCoordinate emission, double amount, Currency currency)
      Creates a new Check from amount and currency.
      Parameters:
      identification - unique check number
      emitter - the account issuing the check
      receiver - the organization receiving payment
      emission - the date/time of issue
      amount - the numeric amount
      currency - the currency
  • Method Details

    • getId

      public Identification getId()
      Description copied from interface: Identified
      Returns the unique identifier of this entity.
      Specified by:
      getId in interface Identified<Identification>
      Returns:
      the identifier
    • getTraits

      public Map<String,Object> getTraits()
      Description copied from interface: ComprehensiveIdentification
      Returns the traits map for this entity.
      Specified by:
      getTraits in interface Commented
      Specified by:
      getTraits in interface ComprehensiveIdentification
      Returns:
      the traits map
    • getIdentification

      public Identification getIdentification()
      Returns the check identification.
      Returns:
      the identification
    • getEmitter

      public Account getEmitter()
      Returns the emitter account.
      Returns:
      the emitter
    • getReceiver

      public Organization getReceiver()
      Returns the receiver organization.
      Returns:
      the receiver
    • getEmission

      public TimeCoordinate getEmission()
      Returns the emission date/time.
      Returns:
      the emission instant
    • getValue

      public Money getValue()
      Returns the check value.
      Returns:
      the amount
    • getCurrency

      public Currency getCurrency()
      Returns the currency of this check.
      Returns:
      the currency
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object