src/main/java/de/dfki/lt/loot/jada/IntTrie.java
public IntTrie<T> findOrAdd(int id) {
    IntTrie<T> node = null;
    if (_subs == null) {
      node = new IntTrie<T>(id);
      _subs = new ArrayList<IntTrie<T>>(1);
      _subs.add(node);
    } else {
      for (IntTrie<T> sub : _subs) {
        if (sub._value == id) {
          node = sub;
          break;
        }
      }
      if (node == null) {
        node = new IntTrie<T>(id);
        _subs.add(node);
      }
    }
    return node;
  }
/** helper for private addSequence method, returns a given sibling Trie node,]
   *  if one exists, or creates a new one.
   *
   *  TODO: Seeking is linear, might need improvement
   */
helper for private addSequence method, returns a given sibling Trie node,]
if one exists, or creates a new one.

Seeking is linear, might need improvement
helper for private addSequence method returns a given sibling Trie node ] if one exists or creates a new one . Seeking is linear might need improvement
public IntTrie<T> findOrAdd(int id) {
    IntTrie<T> node = null;
    if (_subs == null) {
      node = new IntTrie<T>(id);
      _subs = new ArrayList<IntTrie<T>>(1);
      _subs.add(node);
    } else {
      for (IntTrie<T> sub : _subs) {
        if (sub._value == id) {
          node = sub;
          break;
        }
      }
      if (node == null) {
        node = new IntTrie<T>(id);
        _subs.add(node);
      }
    }
    return node;
  }
public IntTrie < T > findOrAdd ( int id ) { IntTrie < T > node = null ; if ( _subs == null ) { node = new IntTrie < T > ( id ) ; _subs = new ArrayList < IntTrie < T > > ( 1 ) ; _subs . add ( node ) ; } else { for ( IntTrie < T > sub : _subs ) { if ( sub . _value == id ) { node = sub ; break ; } } if ( node == null ) { node = new IntTrie < T > ( id ) ; _subs . add ( node ) ; } } return node ; }
helper for private addSequence method, returns a given sibling Trie node,]
  if one exists, or creates a new one.
helper for private addSequence method returns a given sibling Trie node ] if one exists or creates a new one .