Package entity
Class Customer
java.lang.Object
entity.AbstractCustomer
entity.Customer
- All Implemented Interfaces:
Person
Represents a customer in the banking system.
Built using the Builder pattern.
- Author:
- TAMIL MUGHILAN
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for creating Customer instances. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class entity.AbstractCustomer
getEmail, getId, getName, getPassword, getPhone, isValidCustomer, isValidPhone, setEmail, setId, setName, setPassword, setPhone
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface entity.Person
isValidEmail, isValidName
-
Field Details
-
branch_id
private final int branch_id -
salt
-
-
Constructor Details
-
Customer
-
-
Method Details
-
getBranchId
public int getBranchId()Gets the branch ID.- Specified by:
getBranchId
in classAbstractCustomer
- Returns:
- the branch ID
-
getSalt
Gets the Salt for password.- Returns:
- salt for password
-
toString
-