public final class LibraryUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
generateNonClashingName(String source,
Collection<String> siblings,
int maxNameSize)
Generates a non-clashing name for a "source" to be added amongst "siblings".
|
static String |
generateUniqueCopyName(List<String> copiesNames,
String sourceName,
int maxNameSize) |
static String |
generateUniqueName(List<String> copiesNames,
String sourceName,
String token,
int maxNameSize)
Will generate a unique name assuming that there is a clash with the given copiesNames.
|
public static String generateUniqueName(List<String> copiesNames, String sourceName, String token, int maxNameSize)
public static String generateUniqueCopyName(List<String> copiesNames, String sourceName, int maxNameSize)
public static String generateNonClashingName(String source, Collection<String> siblings, int maxNameSize)
source - the non null source name.siblings - a non null collection of siblings of the source nameCopyright © 2010–2017 Henix, henix.fr. All rights reserved.