Posted on 2017-07-11 11:40
skycity 阅读(2755)
评论(0) 编辑 收藏
public enum Section {
KITTING(1),
LABELKITTING(2),
PACKING(3);
private final int code;
private Section(int code)
{
this.code=code;
}
public int getCode()
{
return this.code;
}
}
Map<Integer,Section> MAP=Arrays.stream(Section.values()).collect(Collectors.toMap(s->s.code, section->section));
Lyyb2001