-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30b41c0
commit 63bc67e
Showing
4 changed files
with
670 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
* Белорусский | ||
* Кириллица | ||
* Английский | ||
* Греческий | ||
|
||
### Получение букв алфавита | ||
```java | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Copyright © 2022 Алексей Каленчуков | ||
* GitHub: https://github.com/kalenchukov | ||
* E-mail: mailto:aleksey.kalenchukov@yandex.ru | ||
*/ | ||
|
||
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); | ||
} | ||
} |
Oops, something went wrong.