Class FlexibleConstructorBodiesExamples.Account
java.lang.Object
net.jrodolfo.java_evolution.java25.FlexibleConstructorBodiesExamples.Account
- Enclosing class:
FlexibleConstructorBodiesExamples
Simple account model used to demonstrate validation before constructor
delegation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Account
Creates an active account after validating and normalizing the owner.- Parameters:
owner- account owner
-
-
Method Details
-
owner
-
active
public boolean active()Returns whether the account is active.- Returns:
- active flag
-