UniqueNames

org.specs2.data.UniqueNames
case class UniqueNames(separator: String)

Stateful class to create unique names.

When the same name is asked for the second time, a unique int is attached to it

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def uniqueName(name: String): String

Attributes

Returns

a unique name based on the name unicity

def uniqueName(reference: Any, name: String): String

Attributes

Returns

a unique name based on the reference hashcode

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

var names: Map[String, Int]
var references: Map[Int, Int]