Entry (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.dictionary.serializer

## Class Entry

- java.lang.Object
- - opennlp.tools.dictionary.serializer.Entry

-     public class Entry
      extends Object

  An `Entry` is a `StringList` which can optionally be mapped to attributes. `Entry`s is a read and written by the `DictionaryEntryPersistor`.
  See Also:
    `DictionaryEntryPersistor`, `Attributes`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Entry(StringList tokens, Attributes attributes)` Initializes the current instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Attributes` | `getAttributes()` Retrieves the `Attributes`.
    `StringList` | `getTokens()` Retrieves the tokens.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Entry

          public Entry(StringList tokens,
                       Attributes attributes)

      Initializes the current instance.
      Parameters:
        `tokens` -
        `attributes` -

  - ### Method Detail

    - #### getTokens

          public StringList getTokens()

      Retrieves the tokens.
      Returns:
        the tokens

    - #### getAttributes

          public Attributes getAttributes()

      Retrieves the `Attributes`.
      Returns:
        the `Attributes`

Copyright © 2026 The Apache Software Foundation. All rights reserved.