Record Class Labels.Value
java.lang.Object
java.lang.Record
org.neo4j.cypherdsl.core.Labels.Value
- Record Components:
modifier- modifier for the given contentvisitable- the actual value
- All Implemented Interfaces:
Visitable
- Enclosing class:
Labels
public static record Labels.Value(Labels.Modifier modifier, Visitable visitable)
extends Record
implements Visitable
The content of this expression. Depending on the modifier, the expression can be
dynamically or statically matched. The actual
value must resolve to an
expression that either is
- A single string
- A list of strings
- A parameter holding either a single or a list of strings
- Since:
- 2025.1.0
- Author:
- Michael J. Simons
-
Constructor Summary
ConstructorsConstructorDescriptionValue(Labels.Modifier modifier, Visitable visitable) Creates an instance of aValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.modifier()Returns the value of themodifierrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevisitablerecord component.
-
Constructor Details
-
Method Details
-
accept
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
modifier
-
visitable
-