@@ -0,0 +1,856 @@
+package org.trie4j.patricia.tail;%0A%0Apublic class NodeAdapter implements org.trie4j.Node%7B%0A%09public NodeAdapter(Node node, CharSequence tails)%7B%0A%09%09this.node = node;%0A%09%09this.tails = tails;%0A%09%7D%0A%09@Override%0A%09public org.trie4j.Node getChild(char c) %7B%0A%09%09Node n = node.getChild(c);%0A%09%09if(n == null) return null;%0A%09%09else return new NodeAdapter(n, tails);%0A%09%7D%0A%09@Override%0A%09public org.trie4j.Node%5B%5D getChildren() %7B%0A%09%09org.trie4j.Node%5B%5D ret = new org.trie4j.Node%5Bnode.getChildren().length%5D;%0A%09%09for(int i = 0; i %3C ret.length; i++)%7B%0A%09%09%09ret%5Bi%5D = new NodeAdapter(node.getChildren()%5Bi%5D, tails);%0A%09%09%7D%0A%09%09return ret;%0A%09%7D%0A%09public char getFirstLetter()%7B%0A%09%09return node.getFirstLetter();%0A%09%7D%0A%09@Override%0A%09public char%5B%5D getLetters() %7B%0A%09%09return node.getLetters(tails);%0A%09%7D%0A%09@Override%0A%09public boolean isTerminate() %7B%0A%09%09return node.isTerminate();%0A%09%7D%0A%09private Node node;%0A%09private CharSequence tails;%0A%7D%0A

add PatriciaTrie with tail.