Enum Class MigrationsConfig.VersionSortOrder

java.lang.Object
java.lang.Enum<MigrationsConfig.VersionSortOrder>
ac.simons.neo4j.migrations.core.MigrationsConfig.VersionSortOrder
All Implemented Interfaces:
Serializable, Comparable<MigrationsConfig.VersionSortOrder>, Constable
Enclosing class:
MigrationsConfig

public static enum MigrationsConfig.VersionSortOrder extends Enum<MigrationsConfig.VersionSortOrder>
This class has been introduced in 2.8.3 to configure the way version numbers are sorted. By default, they are sorted in lexicographic order ever since Neo4j-Migrations has been conceived. This has been an oversight and most likely not what is expected. We cannot change the default in the 2.x series, as that would be a possible hard breaking change, but 3.x will default to semantic ordering.
Since:
2.9.0
  • Enum Constant Details

  • Method Details

    • values

      public static MigrationsConfig.VersionSortOrder[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MigrationsConfig.VersionSortOrder valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null