Package lombok

Examples of lombok.val.substring()


    val sb = new StringBuilder(length + 32);
    while (sb.length() < length)
      sb.append(ConversionUtils.toBase64(getPseudoInt64()));

    return sb.substring(0, length);
  }

  /**
   * Returns random text characters (uses the 0..9, A..Z and a..z character sets). Randomness sourced from the information entropy of a new
   * UUID.
 
View Full Code Here


    val sb = new StringBuilder(length + 32);
    while (sb.length() < length)
      sb.append(ConversionUtils.toBase64(getSecureInt64()));

    return sb.substring(0, length);
  }

  /**
   * Returns random text characters (uses the 0..9, A..Z and a..z character sets) created by a cryptographically secure source.
   *
 
View Full Code Here

      for (char ch : base64.toCharArray())
        if (Character.isLetterOrDigit(ch))
          sb.append(ch);
    }

    return sb.substring(0, length);
  }

  private RandomUtils()
  {
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.