Package org.neo4j.cypherdsl.core
Interface ExposesProperties<T extends ExposesProperties<?> & PropertyContainer>
-
- Type Parameters:
T- type of the object holding the specified properties
- All Known Implementing Classes:
Node,Relationship
public interface ExposesProperties<T extends ExposesProperties<?> & PropertyContainer>A container that exposes methods to add properties with values to nodes or relationships.- Since:
- 1.1
- Author:
- Michael J. Simons
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TwithProperties(java.lang.Object... keysAndValues)Creates a a copy of this property container with additional properties.TwithProperties(MapExpression newProperties)Creates a a copy of this property container with additional properties.
-
-
-
Method Detail
-
withProperties
T withProperties(MapExpression newProperties)
Creates a a copy of this property container with additional properties. Creates a property container without properties when no properties are passed to this method.- Parameters:
newProperties- the new properties (can be null to remove exiting properties).- Returns:
- The new property container.
-
withProperties
T withProperties(java.lang.Object... keysAndValues)
Creates a a copy of this property container with additional properties. Creates a property container without properties when no properties are passed to this method.- Parameters:
keysAndValues- A list of key and values. Must be an even number, with alternatingStringandExpression.- Returns:
- The new property container.
-
-