public class UniqueNamer extends Object
Constructor and Description |
---|
UniqueNamer(String prefix)
Creates a new UniqueNamer.
|
Modifier and Type | Method and Description |
---|---|
UniqueNamer |
clone()
Copies this UniqueNamer.
|
Map<String,String> |
existing() |
String |
getName() |
String |
getName(String oldName)
Gets the new name for the given old name, where if no old name is given a
new name will be generated.
|
Boolean |
isNamed(String oldName) |
public UniqueNamer(String prefix)
prefix
- the prefix to use ('<prefix><counter>').public UniqueNamer clone()
public String getName(String oldName)
oldName
- the old name to get the new name for.public String getName()
Copyright © 2019. All rights reserved.