Class Configuration


  • @API(status=EXPERIMENTAL,
         since="2021.0.1")
    public final class Configuration
    extends Object
    This class provides some configuration settings for the Cypher-DSL, mainly around rendering of a statement. Instances of Configuration are threadsafe and can be reused. Please use the associated builder via newConfig() to create new variants.
    Since:
    2021.0.1
    Author:
    Michael J. Simons
    • Method Detail

      • defaultConfig

        public static Configuration defaultConfig()
        Cypher is not pretty printed by default. No indentation settings apply.
        Returns:
        the default config
      • prettyPrinting

        public static Configuration prettyPrinting()
        Pretty printing with default indentation settings.
        Returns:
        a configuration enabling pretty printing.
      • isPrettyPrint

        public boolean isPrettyPrint()
      • getIndentSize

        public int getIndentSize()
      • isAlwaysEscapeNames

        public boolean isAlwaysEscapeNames()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object