Class Alphabet

java.lang.Object
org.stubit.random.Alphabet

public class Alphabet extends Object
Represents an alphabet (a list of letters).
  • Field Details

    • BASIC_LATIN

      public static final Alphabet BASIC_LATIN
      The basic Latin alphabet as used in English.
    • GERMAN

      public static final Alphabet GERMAN
      The German alphabet.
    • FRENCH

      public static final Alphabet FRENCH
      The French alphabet.
    • BASIC_ARABIC

      public static final Alphabet BASIC_ARABIC
      The basic Arabic alphabet.
    • PERSIAN

      public static final Alphabet PERSIAN
      The Persian alphabet.
  • Constructor Details

    • Alphabet

      public Alphabet(List<Character> letters)
      Creates a new alphabet from a list of characters.
      Parameters:
      letters - the characters in the alphabet
    • Alphabet

      public Alphabet(Alphabet base, List<Character> additionalCharacters)
      Creates a new alphabet by adding additional characters to an existing alphabet.
      Parameters:
      base - the base alphabet
      additionalCharacters - the additional characters