public class PersonFactory extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static PersonObj |
prototypePerson |
private static SSNObj |
prototypeSSN |
private static java.util.Random |
random |
Modifier | Constructor and Description |
---|---|
private |
PersonFactory() |
Modifier and Type | Method and Description |
---|---|
static Person |
newPerson(java.lang.String name,
SSN ssn) |
static Person |
newPerson(java.lang.String name,
java.lang.String ssn) |
static Person |
newRandomPerson() |
static SSN |
newSSN(java.lang.String s) |
private static SSNObj prototypeSSN
private static PersonObj prototypePerson
private static java.util.Random random
private PersonFactory()