Revision eda1284c src/main/scala/gr/grnet/aquarium/simulation/uid/UIDGenerator.scala
b/src/main/scala/gr/grnet/aquarium/simulation/uid/UIDGenerator.scala | ||
---|---|---|
41 | 41 |
* @author Christos KK Loverdos <loverdos@gmail.com> |
42 | 42 |
*/ |
43 | 43 |
|
44 |
trait UIDGenerator { |
|
45 |
def nextUID(): String |
|
44 |
trait UIDGenerator[T] { |
|
45 |
def nextUIDObject(): T |
|
46 |
def nextUID(): String = nextUIDObject().toString |
|
46 | 47 |
} |
Also available in: Unified diff