intellij-randomness / com.fwdekker.randomness.string / Alphabet

Alphabet

enum class Alphabet

An Alphabet represents a named collection of symbols.

Parameters

description - the description of the alphabet

symbols - the symbols in the alphabet

Enum Values

ALPHABET

The lowercase English alphabet.

DIGITS

The digits 0 through 9.

HEXADECIMAL

The hexadecimal digits 0 through f.

MINUS

A minus (-).

UNDERSCORE

An underscore (_).

SPACE

A whitespace ( ).

SPECIAL

A collection of special characters.

BRACKETS

A collection of brackets and parentheses.

Properties

description

val description: String

the description of the alphabet

symbols

val symbols: String

the symbols in the alphabet

Functions

toString

fun toString(): String

Returns the description field.