18034727885
2026-04-27 3a4c1bbb2cf4fb1cdda8a5061b0674f30e7456b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.example.smart.enumlist;
 
import com.example.smart.enumlist.PropertyItemType;
 
 
import java.util.Arrays;
 
 
public class PropertyItem implements Comparable<PropertyItem>{
 
    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);
    }
}