
com.offerready.xslt.xsltfunction.Strings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xslt-library Show documentation
Show all versions of xslt-library Show documentation
Utility classes for XSLT processing used at Offer-Ready GmbH
The newest version!
package com.offerready.xslt.xsltfunction;
import org.apache.commons.lang3.RandomStringUtils;
import javax.annotation.Nonnull;
import java.util.HashSet;
@SuppressWarnings("unused") // These are used by XSLT code
public class Strings {
public static @Nonnull String randomLowercaseLetter() {
var chars = new HashSet();
for (var c = 'a'; c <= 'z'; c++) chars.add(c);
var result = new StringBuilder();
for (var c : chars) result.append(c);
return RandomStringUtils.random(1, result.toString());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy