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

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def uniqueName(name: String): String
Returns:

a unique name based on the name unicity

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

a unique name based on the reference hashcode

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

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