public class NameGenerator extends Object
There are over 14,000 different possible names.
| Constructor and Description |
|---|
NameGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateName()
Generates a new random name of the form adjective + fish.
|
String |
generateUniqueName(List<String> takenNames,
String UUID)
Generates a unique name.
|
public String generateName()
This is not guranteeed to be unique.
public String generateUniqueName(List<String> takenNames, String UUID)
generateName()takenNames - a list of all names of instances that already existUUID - The UUID of the instanceCopyright © 2017. All rights reserved.