BasicReferenceAttributes.java

  1. package de.dlr.shepard.neo4Core.orderBy;

  2. import java.util.List;

  3. public enum BasicReferenceAttributes implements OrderByAttribute {
  4.   createdAt,
  5.   updatedAt,
  6.   name,
  7.   type;

  8.   private static List<BasicReferenceAttributes> stringList = List.of(
  9.     BasicReferenceAttributes.name,
  10.     BasicReferenceAttributes.type
  11.   );

  12.   private boolean isString(BasicReferenceAttributes referenceAttribute) {
  13.     return stringList.contains(referenceAttribute);
  14.   }

  15.   @Override
  16.   public boolean isString() {
  17.     return isString(this);
  18.   }
  19. }