net.sf.extjwnl.dictionary
Class POSKey

java.lang.Object
  extended by net.sf.extjwnl.dictionary.POSKey

public class POSKey
extends Object

A cache key consists of a POS and an object.

Author:
John Didion

Constructor Summary
POSKey(POS pos, long offset)
           
POSKey(POS pos, String lemma)
           
 
Method Summary
 boolean equals(Object object)
           
 Object getKey()
           
 POS getPOS()
           
 int hashCode()
           
 boolean isLemmaKey()
           
 boolean isOffsetKey()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

POSKey

public POSKey(POS pos,
              String lemma)

POSKey

public POSKey(POS pos,
              long offset)
Method Detail

equals

public boolean equals(Object object)
Overrides:
equals in class Object

getPOS

public POS getPOS()

getKey

public Object getKey()

isLemmaKey

public boolean isLemmaKey()

isOffsetKey

public boolean isOffsetKey()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.