org.apache.wicket.spring.common
Class ContactGenerator

java.lang.Object
  extended by org.apache.wicket.spring.common.ContactGenerator

public class ContactGenerator
extends java.lang.Object

generates random contacts

Author:
Igor Vaynberg (ivaynberg)

Method Summary
 Contact generate()
          generates a new contact
 void generate(java.util.Collection 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

generateId

public long generateId()
Returns:
unique id

generate

public Contact generate()
generates a new contact

Returns:
generated contact

generate

public void generate(java.util.Collection collection,
                     int count)
generats count number contacts and puts them into collection collection

Parameters:
collection -
count -


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