Class IndexWord

java.lang.Object
net.didion.jwnl.data.IndexWord
All Implemented Interfaces:
Serializable, DictionaryElement

public class IndexWord extends Object implements DictionaryElement
An IndexWord represents a line of the pos.index file. An IndexWord is created or retrieved via lookupIndexWord.
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • _pos

      private POS _pos
      This word's part-of-speech
    • _lemma

      private String _lemma
      The string representation of this IndexWord
    • _synsetOffsets

      private long[] _synsetOffsets
      senses are initially stored as offsets, and paged in on demand.
    • _synsets

      private transient Synset[] _synsets
      This is null until getSenses has been called.
    • _synsetsLoaded

      private transient boolean _synsetsLoaded
      True when all synsets have been loaded
    • _cachedToString

      private transient String _cachedToString
  • Constructor Details

    • IndexWord

      public IndexWord(String lemma, POS pos, long[] synsetOffsets)
  • Method Details