All Packages Class Hierarchy This Package Previous Next Index
Class scrobble.Language
java.lang.Object
|
+----scrobble.Language
- public class Language
- extends Object
- implements Serializable
Language.java
This class defines the language object. This object permits only to
choose the language on the clients side.
-
description
- Contains the description of this language in terms of Dictionnary and Distribution
-
identifier
- Contains the identifier of the language choosen
-
name
- Contains the name of the language the game is played in
-
Language(int, String, String)
- Creates a new language with the given identifier, name and description
-
getDescription()
- Returns a short description of the language is played in.
-
getIdentifier()
- Returns the identifier of the language is played in.
-
getName()
- Returns the name of the language is played in.
-
toString()
- Returns a String representation of Object.
name
String name
- Contains the name of the language the game is played in
identifier
int identifier
- Contains the identifier of the language choosen
description
String description
- Contains the description of this language in terms of Dictionnary and Distribution
Language
public Language(int identifier,
String name,
String description)
- Creates a new language with the given identifier, name and description
- Parameters:
- identifier - the identifier of the language created
- name - the identifier of the language created
- description - the identifier of the language created
getName
public String getName()
- Returns the name of the language is played in.
getIdentifier
public int getIdentifier()
- Returns the identifier of the language is played in.
getDescription
public String getDescription()
- Returns a short description of the language is played in.
toString
public String toString()
- Returns a String representation of Object.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index