Package ac.simons.neo4j.migrations.core
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSort version numbers in lexicographic order (the default in 1.x and 2.x).Sort version numbers in semantic order (will be the default in 3.x) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MigrationsConfig.VersionSortOrder[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEXICOGRAPHIC
Sort version numbers in lexicographic order (the default in 1.x and 2.x). -
SEMANTIC
Sort version numbers in semantic order (will be the default in 3.x)
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-