Пример #1
0
  @Override
  public int put(String[] entry) {
    // Get wordId of current entry
    int wordId = buffer.position();

    // Put entry
    int result = super.put(entry);

    // Put entry in targetMap
    int characterId = CharacterClass.valueOf(entry[0]).getId();
    addMapping(characterId, wordId);
    return result;
  }