com.atlassian.bamboo.utils
Class Random

java.lang.Object
  extended by com.atlassian.bamboo.utils.Random

Deprecated. since 5.4 use RandomStringUtils instead

@Deprecated
public class Random
extends Object

This class generates random stuff!


Constructor Summary
Random()
          Deprecated.  
 
Method Summary
 char randomAlpha()
          Deprecated. Generate a random alphabetic character - a-z or A-Z
 char randomAlphaNumeric()
          Deprecated. Generate a random alphanumeric character.
 char randomNumeric()
          Deprecated. Generate a random digit - from 0 - 9
 String randomString(int length)
          Deprecated. Generate a random string of characters and numbers
 String randomString(int length, boolean includeNumbers)
          Deprecated. Generate a random string of characters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Random

public Random()
Deprecated. 
Method Detail

randomString

public String randomString(int length)
Deprecated. 
Generate a random string of characters and numbers

Parameters:
length - The size of the generated string

randomString

public String randomString(int length,
                           boolean includeNumbers)
Deprecated. 
Generate a random string of characters

Parameters:
length - The size of the generated string
includeNumbers - Should the string contain just alpha or alpha numeric charaters

randomAlphaNumeric

public char randomAlphaNumeric()
Deprecated. 
Generate a random alphanumeric character.


randomAlpha

public char randomAlpha()
Deprecated. 
Generate a random alphabetic character - a-z or A-Z


randomNumeric

public char randomNumeric()
Deprecated. 
Generate a random digit - from 0 - 9



Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.