Package ac.simons.neo4j.migrations.core
Enum Neo4jEdition
- All Implemented Interfaces:
Serializable
,Comparable<Neo4jEdition>
Represents a Neo4j edition.
- Since:
- 1.7.0
- Author:
- Michael J. Simons
-
Enum Constant Summary
Enum ConstantDescriptionConstant for the community edition.Constant for the enterprise edition.Constant for an unknown edition. -
Method Summary
Modifier and TypeMethodDescriptionstatic Neo4jEdition
static Neo4jEdition
static Neo4jEdition
Returns the enum constant of this type with the specified name.static Neo4jEdition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ENTERPRISE
Constant for the enterprise edition. -
COMMUNITY
Constant for the community edition. -
UNDEFINED
Constant for an unknown edition.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
- Parameters:
edition
- A string value describing the edition, may be null- Returns:
- The enum constant for the given edition or
UNDEFINED
if lenient parsing is not possible.
-
of
- Parameters:
edition
- A string value describing the edition, may be nulllenient
- Whether lenient parsing should be attempted or not- Returns:
- The enum constant for the given edition or
UNDEFINED
if lenient parsing is not possible.
-