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