org.apache.wicket.threadtest.apps.app1
Class ContactGenerator

java.lang.Object
  extended by org.apache.wicket.threadtest.apps.app1.ContactGenerator

public class ContactGenerator
extends Object

generates random contacts

Author:
igor

Method Summary
 Contact generate()
          generates a new contact
 void generate(Collection<Contact> collection, int count)
          generats count number contacts and puts them into collection collection
 long generateId()
           
static ContactGenerator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContactGenerator getInstance()
Returns:
static instance of generator

generate

public Contact generate()
generates a new contact

Returns:
generated contact

generate

public void generate(Collection<Contact> collection,
                     int count)
generats count number contacts and puts them into collection collection

Parameters:
collection -
count -

generateId

public long generateId()
Returns:
unique id


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.