Class RandomDataUtils


  • public final class RandomDataUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.CharSequence randomCharSequenceOfByteLength​(int lengthInUtf8Bytes)
      Generates a new random CharSequence whose UTF-8 encoding is of the specified size.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • randomCharSequenceOfByteLength

        public static java.lang.CharSequence randomCharSequenceOfByteLength​(int lengthInUtf8Bytes)
        Generates a new random CharSequence whose UTF-8 encoding is of the specified size.
        Parameters:
        lengthInUtf8Bytes - the desired size
        Returns:
        a new CharSequence