package com.example.smart.enumlist; import com.example.smart.enumlist.PropertyItemType; import java.util.Arrays; public class PropertyItem implements Comparable{ String name; String groupName; PropertyItemType type; String [] options; boolean required; @Override public String toString() { return "PropertyItem{" + "name='" + name + '\'' + ", type=" + type + ", options=" + Arrays.toString(options) + ", required=" + required + '}'; } @Override public int compareTo(PropertyItem o) { return this.name.compareTo(o.name); } }