code: public static TrieNodeFactory<Boolean> getInstance() {
          return new TrieNodeFactory<Boolean>() {
              @Override
              public TrieNode<Boolean> create() {
                  return new BooleanTrieNode();
              }
          };
      }
docs: specialized in speed for boolean keyed nodes.