Packages

o

lightdb

Unique

object Unique

Unique String generator

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Unique
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. lazy val AllLettersAndNumbers: String
  5. lazy val Hexadecimal: String
  6. lazy val LettersAndNumbers: String
  7. lazy val LettersLower: String
  8. lazy val LettersUpper: String
  9. lazy val Numbers: String
  10. lazy val Readable: String
  11. def apply(length: Int = defaultLength, characters: String = defaultCharacters, secure: Boolean = defaultSecure): String

    Generates a unique String using the characters supplied at the length defined.

    Generates a unique String using the characters supplied at the length defined.

    length

    the length of the resulting String. Defaults to Unique.defaultLength.

    characters

    the characters for use in the String. Defaults to Unique.defaultCharacters.

    secure

    true if the randomization should be secure. Defaults to Unique.defaultSecure.

    returns

    a unique String

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  14. var defaultCharacters: String

    The default characters to use for generating unique values.

    The default characters to use for generating unique values. Defaults to AllLettersAndNumbers.

  15. var defaultLength: Int

    The default length to use for generating unique values.

    The default length to use for generating unique values. Defaults to 32.

  16. var defaultSecure: Boolean

    True if randomization should be secure.

    True if randomization should be secure. Defaults to false.

  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. def poolSize(length: Int = 32, characters: String = AllLettersAndNumbers): Long

    Returns the number of possible values for a specific length and characters.

  26. var random: (Int) => Int

    Random number generator used to generate unique values.

    Random number generator used to generate unique values. Defaults to threadLocalRandom.

  27. final def secureRandom(max: Int): Int
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. final def threadLocalRandom(max: Int): Int

    Uses java.util.concurrent.ThreadLocalRandom to generate random numbers.

    Uses java.util.concurrent.ThreadLocalRandom to generate random numbers.

    max

    the maximum value to include

    returns

    random number between 0 and max

  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def uuid(secure: Boolean = false): String

    Convenience functionality to generate a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier)

    Convenience functionality to generate a UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier)

    32 characters of unique hexadecimal values with dashes representing 36 total characters

  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped