public final class PersonFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Person[] |
createPersonArray(int personCount) |
static java.util.List<Person> |
createPersonList(int personCount) |
static java.util.stream.Stream<Person> |
createPersonStream(int personCount) |
static Person |
createRandomPerson() |
public static Person createRandomPerson()
public static java.util.List<Person> createPersonList(int personCount)
personCount
- - number of Person objects to createpublic static Person[] createPersonArray(int personCount)
personCount
- - number of Person objects to createpublic static java.util.stream.Stream<Person> createPersonStream(int personCount)
personCount
- - number of Person objects to create