二元式。
TwoItem.java:
package per.eyuan.util;
public class TwoItem {
String category;//类别id,num
String inside;//内码值,对于id和num,通过内码值,在Id和Num类中,找到具体的更多属性
public TwoItem(String category, String inside) {
super();
this.category = category;
this.inside = inside;
}
public TwoItem() {
super();
}
public String getCategory() {
return category;
}
public String getInside() {
return inside;
}
}