public class ContactGenerator extends Object
Modifier and Type | Method and Description |
---|---|
Contact |
generate()
generates a new contact
|
void |
generate(Collection collection,
int count)
generates
count number contacts and puts them into collection
collection |
long |
generateId() |
static ContactGenerator |
getInstance() |
public static ContactGenerator getInstance()
public long generateId()
public Contact generate()
public void generate(Collection collection, int count)
count
number contacts and puts them into collection
collectioncollection
- count
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.