View Javadoc
1   package de.dlr.shepard.neo4Core.orderBy;
2   
3   import java.util.List;
4   
5   public enum DataObjectAttributes implements OrderByAttribute {
6     createdAt,
7     updatedAt,
8     name;
9   
10    private static List<DataObjectAttributes> stringList = List.of(DataObjectAttributes.name);
11  
12    private boolean isString(DataObjectAttributes dataObjectAttribute) {
13      return stringList.contains(dataObjectAttribute);
14    }
15  
16    @Override
17    public boolean isString() {
18      return isString(this);
19    }
20  }