Enum Class UserAgent

java.lang.Object
java.lang.Enum<UserAgent>
org.neo4j.ogm.drivers.bolt.driver.UserAgent
All Implemented Interfaces:
Serializable, Comparable<UserAgent>, Constable

public enum UserAgent extends Enum<UserAgent>
A similar version of this class written by the same author appeared in SDN 6.1.11 for the first time. Representation of a user agent containing sensible information to identify queries generated by or executed via Neo4j-OGM.
Author:
Michael J. Simons
  • Enum Constant Details

    • INSTANCE

      public static final UserAgent INSTANCE
  • Method Details

    • values

      public static UserAgent[] 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 UserAgent 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
    • getDriverVersion

      public String getDriverVersion()
    • getNeo4jOgmVersion

      public String getNeo4jOgmVersion()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<UserAgent>