Class KeyValueMapEntry

java.lang.Object
org.neo4j.cypherdsl.core.KeyValueMapEntry
All Implemented Interfaces:
Visitable, Expression

@API(status=STABLE, since="1.0") public final class KeyValueMapEntry extends Object implements Expression
Helper class, only for internal use.
Since:
1.0
Author:
Michael J. Simons
  • Method Details

    • create

      @NotNull @API(status=STABLE, since="2021.2.3") public static @NotNull KeyValueMapEntry create(@NotNull @NotNull String key, @NotNull @NotNull Expression value)
      Create a new KeyValueMapEntry. This is hardly useful in direct usage, but might be handy to compose clauses outside the fluent api.
      Parameters:
      key - the key of this entry
      value - the value of this entry
      Returns:
      A new, immutable map entry.
      Since:
      2021.2.3
    • getKey

      @API(status=INTERNAL) public String getKey()
      Returns:
      The key of this entry.
    • accept

      public void accept(Visitor visitor)
      Description copied from interface: Visitable
      Accept a Visitor visiting this Visitable and its nested Visitables if applicable.
      Specified by:
      accept in interface Visitable
      Parameters:
      visitor - the visitor to notify, must not be null.