Skip to content

Commit

Permalink
Добавлен греческий алфавит
Browse files Browse the repository at this point in the history
  • Loading branch information
kalenchukov committed Jul 17, 2022
1 parent 30b41c0 commit 63bc67e
Show file tree
Hide file tree
Showing 4 changed files with 670 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Белорусский
* Кириллица
* Английский
* Греческий

### Получение букв алфавита
```java
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>dev.kalenchukov</groupId>
<artifactId>alphabet</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>

<name>Alphabet</name>
<description>Алфавиты языков мира</description>
Expand Down
65 changes: 65 additions & 0 deletions src/main/java/dev/kalenchukov/alphabet/GreekAlphabet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Copyright © 2022 Алексей Каленчуков
* GitHub: https://github.com/kalenchukov
* E-mail: mailto:[email protected]
*/

package dev.kalenchukov.alphabet;

import org.jetbrains.annotations.NotNull;

/**
* Класс греческого алфавита.
*/
public class GreekAlphabet extends AbstractAlphabetCase
{
/**
* Коды прописных букв в Unicode.
*/
@NotNull
public static final Character @NotNull [] LETTERS_UPPER_CASE = new Character[] {
'\u0391', '\u0392', '\u0393', '\u0394', '\u0395', '\u0396',
'\u0397', '\u0398', '\u0399', '\u039A', '\u039B', '\u039C',
'\u039D', '\u039E', '\u039F', '\u03A0', '\u03A1', '\u03A3',
'\u03A4', '\u03A5', '\u03A6', '\u03A7', '\u03A8', '\u03A9'

};

/**
* Коды строчных букв в Unicode.
*/
@NotNull
public static final Character @NotNull [] LETTERS_LOWER_CASE = new Character[] {
'\u03B1', '\u03B2', '\u03B3', '\u03B4', '\u03B5', '\u03B6',
'\u03B7', '\u03B8', '\u03B9', '\u03BA', '\u03BB', '\u03BC',
'\u03BD', '\u03BE', '\u03BF', '\u03C0', '\u03C1', '\u03C3',
'\u03C2', '\u03C4', '\u03C5', '\u03C6', '\u03C7', '\u03C8',
'\u03C9'

};

/**
* Коды букв в Unicode.
*/
@NotNull
public static final Character @NotNull [] LETTERS = new Character[] {
'\u0391', '\u03B1', '\u0392', '\u03B2', '\u0393', '\u03B3',
'\u0394', '\u03B4', '\u0395', '\u03B5', '\u0396', '\u03B6',
'\u0397', '\u03B7', '\u0398', '\u03B8', '\u0399', '\u03B9',
'\u039A', '\u03BA', '\u039B', '\u03BB', '\u039C', '\u03BC',
'\u039D', '\u03BD', '\u039E', '\u03BE', '\u039F', '\u03BF',
'\u03A0', '\u03C0', '\u03A1', '\u03C1', '\u03A3', '\u03C3',
'\u03C2', '\u03A4', '\u03C4', '\u03A5', '\u03C5', '\u03A6',
'\u03C6', '\u03A7', '\u03C7', '\u03A8', '\u03C8', '\u03A9',
'\u03C9'

};

/**
* Конструктор для {@code GreekAlphabet}.
*/
public GreekAlphabet()
{
super(LETTERS, LETTERS_UPPER_CASE, LETTERS_LOWER_CASE);
}
}
Loading

0 comments on commit 63bc67e

Please sign in to comment.