/**
 * A KeyWord consists of a word and an integer (representing the number of 
 * occurrences of the word).  A word is a non-empty sequence of characters 
 * whose letters are all lower-case.  
 */
public class KeyWord implements Comparable<KeyWord>, Prioritizable {

    /**
     * Constructs a KeyWord with the given word (converted to lower-case) 
     * and zero occurences.  If the word is null or an empty string, an 
     * IllegalArgumentException is thrown.
     * @param word the word for this KeyWord
     * @throws IllegalArgumentException if word is null or empty
     */
    public KeyWord(String word) {
        
    }
    
    /**
     * Returns the word for this KeyWord.
     * @return the word for this KeyWord
     */
    public String getWord() {
        return null;
    }
    
    /**
     * Returns the number of occurrences for this KeyWord.
     * @return the number of occurrences for this KeyWord
     */
    public int getOccurrences() {
        return 0;
    }
    
    /**
     * Adds one to the number of occurrences for this KeyWord.
     */
    public void increment() {
        
    }
    
    /**
     * Returns the priority for this KeyWord.  The priority of a KeyWord is
     * the number of occurrences it has.
     */
    public int getPriority() {
        return 0;
    }

    /**
     * Compares the KeyWord with the one given.  Two KeyWords are compared 
     * by comparing the word associated with the two KeyWords, ignoring  
     * case differences in the names.
     * @param other the KeyWord with which to compare this KeyWord
     */
    public int compareTo(KeyWord other) {
        return 0;
    }

    /**
     * Compares this KeyWord to the specified object.  The result is true if
     * and only if the argument is not null and is a KeyWord object whose
     * word is the same as the word of this KeyWord, ignoring case 
     * differences.
     * @param other the object with which to compare this KeyWord
     */
    public boolean equals(Object other) {
        return super.equals(other);
    }
    
}
