-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from amihaiemil/19
#19 GET SupportedLanguages implemented
- Loading branch information
Showing
4 changed files
with
83 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
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
29 changes: 29 additions & 0 deletions
29
src/main/java/io/imagineobjects/linguinai/SupportedLanguage.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package io.imagineobjects.linguinai; | ||
|
||
/** | ||
* Language supported by Linguin.ai. | ||
* @author Mihai Andronache (amihaiemil@gmail.com) | ||
* @version $Id$ | ||
* @since 0.0.1 | ||
*/ | ||
public interface SupportedLanguage { | ||
|
||
/** | ||
* Language code. | ||
* @return String. | ||
*/ | ||
String code(); | ||
|
||
/** | ||
* Name(s) of the language in english. | ||
* @return String[]. | ||
*/ | ||
String[] englishNames(); | ||
|
||
/** | ||
* Name(s) of the language in said language. | ||
* @return String[]. | ||
*/ | ||
String[] nativeNames(); | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/io/imagineobjects/linguinai/SupportedLanguages.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package io.imagineobjects.linguinai; | ||
|
||
/** | ||
* Languages supported by Linguin.ai. | ||
* @author Mihai Andronache (amihaiemil@gmail.com) | ||
* @version $Id$ | ||
* @since 0.0.1 | ||
*/ | ||
public interface SupportedLanguages extends Iterable<SupportedLanguage> { | ||
} |