arch
Class Lexicon.Entry

java.lang.Object
  extended by arch.Lexicon.Entry
All Implemented Interfaces:
java.lang.Comparable<Lexicon.Entry>
Enclosing class:
Lexicon

public static class Lexicon.Entry
extends java.lang.Object
implements java.lang.Comparable<Lexicon.Entry>

The Entry class stores a lexicon entry by its word and transcription

Author:
sikoried

Field Summary
 java.lang.String[] transcription
          The transcription using literals from Lexicon.alphabet including word boundaries at beginning end end
 java.lang.String word
          The actual word
 
Constructor Summary
Lexicon.Entry(java.lang.String word, java.lang.String[] transcription)
          Create a new lexicon entry using given word and transcription
 
Method Summary
 int compareTo(Lexicon.Entry e)
          lexical sort
 boolean equals(Lexicon.Entry e)
          Returns true if the words match
 boolean equals(java.lang.Object o)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transcription

public java.lang.String[] transcription
The transcription using literals from Lexicon.alphabet including word boundaries at beginning end end


word

public java.lang.String word
The actual word

Constructor Detail

Lexicon.Entry

public Lexicon.Entry(java.lang.String word,
                     java.lang.String[] transcription)
Create a new lexicon entry using given word and transcription

Parameters:
word -
transcription -
Method Detail

compareTo

public int compareTo(Lexicon.Entry e)
lexical sort

Specified by:
compareTo in interface java.lang.Comparable<Lexicon.Entry>

equals

public boolean equals(Lexicon.Entry e)
Returns true if the words match

Parameters:
e -
Returns:

equals

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

toString

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