com.paragon.open.dictionary.api
Class Direction

java.lang.Object
  extended by com.paragon.open.dictionary.api.Direction

public final class Direction
extends java.lang.Object

Direction of the translation. E.g. "from English to German".

Author:
Sergey Solomatin (Sergey_Solomatin@penreader.com)

Field Summary
 Language from
          From language.
 Language to
          To language.
 
Constructor Summary
Direction(Language from, Language to)
          Constructor for Direction object.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

from

public final Language from
From language.


to

public final Language to
To language.

Constructor Detail

Direction

public Direction(Language from,
                 Language to)
Constructor for Direction object.

Parameters:
from - from language
to - to language
Throws:
java.lang.IllegalArgumentException
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object