package com.walker.infrastructure.utils; /** * 描述:能显示key、value的对象定义 * @author 时克英 * @date 2017年6月13日 下午4:11:13 */ public class KeyValue { private static final String PREFIX = "+"; private k key; private v value; private int level = 0; private String levelPrefix; public String getLevelPrefix() { return levelPrefix; } /** * 对于树节点,该值代表处于那一层次级别 * @return */ public int getLevel() { return level; } public void setLevel(int level) { this.level = level; if(level > 0){ StringBuilder sb = new StringBuilder(4); for(int i=0; i