com.github.cage
Interface IGenerator<T>

Type Parameters:
T - the type of objects generated by this class
All Known Subinterfaces:
IGeneratorFactory<T>
All Known Implementing Classes:
ConstantColorGenerator, ObjectRoulette, RandomCharacterGeneratorFactory, RandomCharacterGeneratorFactory.RandomCharacterGenerator, RandomTokenGenerator, RgbColorGenerator

public interface IGenerator<T>

Object generator.

Author:
akiraly

Method Summary
 T next()
          Returns an object with type T on every call.
 

Method Detail

next

T next()
Returns an object with type T on every call. The returned object does not have to be a new instance.

Returns:
generated object


Copyright © 2011. All Rights Reserved.