public class SyntheticComponents
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
uniqueId(java.lang.String baseName,
java.util.function.Predicate<java.lang.String> existingIds)
Generate an ID which does not collide with any existing ID, as determined by the input
predicate.
|
public static java.lang.String uniqueId(java.lang.String baseName, java.util.function.Predicate<java.lang.String> existingIds)
The returned ID will be in the form "${baseName}:${number}".