예제 #1
0
 public static String inSeed(ITree t) {
   return ITree.OPEN_SYMBOL + t.getLabel() + ITree.SEPARATE_SYMBOL + t.getType();
 }
예제 #2
0
 public static String outSeed(ITree t) {
   return t.getType() + ITree.SEPARATE_SYMBOL + t.getLabel() + ITree.CLOSE_SYMBOL;
 }
예제 #3
0
 public static int standardHash(ITree t) {
   return Integer.hashCode(t.getType()) + HashUtils.BASE * t.getLabel().hashCode();
 }