java.lang.Object
org.neo4j.cypherdsl.core.KeyValueMapEntry
- All Implemented Interfaces:
Visitable,Expression,PropertyAccessor
@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 Summary
Modifier and TypeMethodDescriptionvoidstatic KeyValueMapEntrycreate(String key, Expression value) Create a newKeyValueMapEntry.getKey()Returns the key of this entry.getValue()Returns the value of this entry.toString()Mostvisitableswill render themselves into a Cypher fragment preceded with the actual classname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, property, remainder, size, sorted, startsWith, subtractMethods inherited from interface org.neo4j.cypherdsl.core.PropertyAccessor
property
-
Method Details
-
create
@API(status=STABLE, since="2021.2.3") public static KeyValueMapEntry create(String key, Expression value) Create a newKeyValueMapEntry. This is hardly useful in direct usage, but might be handy to compose clauses outside the fluent api.- Parameters:
key- the key of this entryvalue- the value of this entry- Returns:
- a new, immutable map entry.
- Since:
- 2021.2.3
-
getKey
Returns the key of this entry.- Returns:
- the key of this entry
-
getValue
Returns the value of this entry.- Returns:
- the value of this entry
-
accept
Description copied from interface:Visitable -
toString
Description copied from interface:VisitableMostvisitableswill render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoStringis recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-