Class POSKey

java.lang.Object
net.didion.jwnl.dictionary.POSKey

public class POSKey extends Object
A cache key consists of a POS and an object
  • Field Details

    • _pos

      private POS _pos
    • _key

      private Object _key
    • _cachedToString

      private transient String _cachedToString
  • Constructor Details

    • POSKey

      private POSKey(POS pos, Object key)
    • POSKey

      public POSKey(POS pos, String lemma)
    • POSKey

      public POSKey(POS pos, long offset)
  • Method Details

    • 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