All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.offerready.xslt.xsltfunction.Strings Maven / Gradle / Ivy

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