Class Check
java.lang.Object
org.episteme.social.economics.money.Check
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named
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 Summary
ConstructorsConstructorDescriptionCheck(Identification identification, Account emitter, Organization receiver, TimeCoordinate emission, double amount, Currency currency) Creates a new Check from amount and currency.Check(Identification id, Account emitter, Organization receiver, TimeCoordinate emission, Money value) Creates a new Check. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the currency of this check.Returns the emission date/time.Returns the emitter account.getId()Returns the unique identifier of this entity.Returns the check identification.Returns the receiver organization.Returns the traits map for this entity.getValue()Returns the check value.inthashCode()toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
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 checkreceiver- the organization receiving paymentemission- the date/time of issuevalue- the check amountidentification- 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 numberemitter- the account issuing the checkreceiver- the organization receiving paymentemission- the date/time of issueamount- the numeric amountcurrency- the currency
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getIdentification
Returns the check identification.- Returns:
- the identification
-
getEmitter
-
getReceiver
-
getEmission
-
getValue
-
getCurrency
-
equals
-
hashCode
-
toString
-