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