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