|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mcdermottroe.exemplar.output.LanguageAPIPair
public class LanguageAPIPair
A class representing a language-API pair.
| Field Summary | |
|---|---|
private String |
api
The API. |
private String |
language
The language. |
| Constructor Summary | |
|---|---|
LanguageAPIPair(String theLanguage,
String theApi)
Basic constructor to set the members. |
|
| Method Summary | |
|---|---|
int |
compareTo(LanguageAPIPair other)
Implement Comparable so that LanguageAPIPair objects can
be contained in a sorted Collection. |
boolean |
equals(Object o)
See Object.equals(Object). |
String |
getAPI()
Accessor for the api member. |
LanguageAPIPair |
getCopy()
Creates a deep copy of the current object and returns it. |
String |
getLanguage()
Accessor for the language member. |
int |
hashCode()
See Object.hashCode(). |
String |
toString()
See Object.toString(). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final String language
private final String api
| Constructor Detail |
|---|
public LanguageAPIPair(String theLanguage,
String theApi)
theLanguage - The value for the language member.theApi - The value for the api member.| Method Detail |
|---|
public String getLanguage()
public String getAPI()
public boolean equals(Object o)
Object.equals(Object).
equals in class Objecto - The object to compare against.
this is equal to o.public int hashCode()
Object.hashCode().
hashCode in class Objectpublic String toString()
Object.toString().
toString in class ObjectString.public int compareTo(LanguageAPIPair other)
Comparable so that LanguageAPIPair objects can
be contained in a sorted Collection.
compareTo in interface Comparable<LanguageAPIPair>other - The object to compare this one to.
public LanguageAPIPair getCopy()
getCopy in interface Copyable<LanguageAPIPair>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||