Package Torello.Languages
Enum LC
- java.lang.Object
-
- java.lang.Enum<LC>
-
- Torello.Languages.LC
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LC>
public enum LC extends java.lang.Enum<LC>
Enumeration of Standard Google Language-Codes.
This provides an enumerated type for all of the various language-codes that will be accepted by the Google Cloud Services - Translation API.
Hi-Lited Source-Code:- View Here: Torello/Languages/LC.java
- Open New Browser-Tab: Torello/Languages/LC.java
File Size: 4,600 Bytes Line Count: 223 '\n' Characters Found
-
-
Field Summary
Fields Modifier and Type Field String
gcsLanguageCode
String
languageName
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method static LC
valueOf(String name)
static LC[]
values()
-
-
-
Field Detail
-
languageName
public final java.lang.String languageName
This contains an java-string that represents the name of the language (in English - "Irish" "Chinese" "Japanese")
-
gcsLanguageCode
public final java.lang.String gcsLanguageCode
This is the two (or five) character String that communicates with GCS Translate API, identifying a language.
COMMON CODES:"zh-CN"
(Mainland Chinese)"zh-TW"
(Traditional Chinese)"es"
(Spanish)"fr"
(French)"ar"
(Arabic)
-
-
Method Detail
-
values
public static LC[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LC c : LC.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LC valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-