public class AppendForest<T> extends Object implements Comparable<AppendForest<T>>, WoodInterface
| 限定符和类型 | 字段和说明 |
|---|---|
AppendForest<T>[] |
branches
status 此字的状态1,继续 2,是个词语但是还可以继续 ,3确定 nature 词语性质
|
| 构造器和说明 |
|---|
AppendForest() |
AppendForest(char c,
int status,
T t) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(String keyWord,
T t)
增加新词
|
WoodInterface |
add(WoodInterface branch) |
void |
append(String keyWord,
T t)
增加新词
|
int |
compareTo(AppendForest<T> o) |
int |
compareTo(char c) |
boolean |
contains(char c)
二分查找是否包含
|
boolean |
equals(char c) |
WoodInterface |
get(char paramChar) |
AppendForest<T> |
getBranch(String keyWord)
根据一个词获得所取的参数,没有就返回null
|
char |
getC() |
List<T> |
getParam() |
String[] |
getParams() |
byte |
getStatus() |
int |
hashCode() |
static void |
main(String[] args) |
int |
search(char c) |
void |
setParam(String[] paramArrayOfString) |
void |
setParam(T t) |
void |
setStatus(int status) |
public AppendForest<T>[] branches
public AppendForest()
public AppendForest(char c,
int status,
T t)
public int search(char c)
public boolean contains(char c)
contains 在接口中 WoodInterfacec - public int compareTo(char c)
compareTo 在接口中 WoodInterfacepublic boolean equals(char c)
equals 在接口中 WoodInterfacepublic byte getStatus()
getStatus 在接口中 WoodInterfacepublic void setStatus(int status)
setStatus 在接口中 WoodInterfacepublic char getC()
getC 在接口中 WoodInterfacepublic void setParam(T t)
public int compareTo(AppendForest<T> o)
compareTo 在接口中 Comparable<AppendForest<T>>public AppendForest<T> getBranch(String keyWord)
keyWord - public static void main(String[] args)
public WoodInterface add(WoodInterface branch)
add 在接口中 WoodInterfacepublic String[] getParams()
getParams 在接口中 WoodInterfacepublic void setParam(String[] paramArrayOfString)
setParam 在接口中 WoodInterfacepublic WoodInterface get(char paramChar)
get 在接口中 WoodInterfaceCopyright © 2016. All rights reserved.