Enum Neo4jEdition

java.lang.Object
java.lang.Enum<Neo4jEdition>
ac.simons.neo4j.migrations.core.Neo4jEdition
All Implemented Interfaces:
Serializable, Comparable<Neo4jEdition>

public enum Neo4jEdition extends Enum<Neo4jEdition>
Represents a Neo4j edition.
Since:
1.7.0
Author:
Michael J. Simons
  • Enum Constant Details

    • ENTERPRISE

      public static final Neo4jEdition ENTERPRISE
      Constant for the enterprise edition.
    • COMMUNITY

      public static final Neo4jEdition COMMUNITY
      Constant for the community edition.
    • UNDEFINED

      public static final Neo4jEdition UNDEFINED
      Constant for an unknown edition.
  • Method Details

    • values

      public static Neo4jEdition[] 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

      public static Neo4jEdition valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static Neo4jEdition of(String edition)
      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

      public static Neo4jEdition of(String edition, boolean lenient)
      Parameters:
      edition - A string value describing the edition, may be null
      lenient - Whether lenient parsing should be attempted or not
      Returns:
      The enum constant for the given edition or UNDEFINED if lenient parsing is not possible.