Interface ExposesProperties<T extends ExposesProperties<?> & PropertyContainer>

  • Type Parameters:
    T - type of the object holding the specified properties
    All Known Subinterfaces:
    Node, Relationship
    All Known Implementing Classes:
    NodeBase, RelationshipBase

    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
      T withProperties​(java.lang.Object... keysAndValues)
      Creates a a copy of this property container with additional properties.
      T withProperties​(java.util.Map<java.lang.String,​java.lang.Object> newProperties)
      Creates a a copy of this property container with additional properties.
      T withProperties​(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 alternating String and Expression.
        Returns:
        The new property container.
      • withProperties

        T withProperties​(java.util.Map<java.lang.String,​java.lang.Object> newProperties)
        Creates a a copy of this property container with additional properties.
        Parameters:
        newProperties - A map with the new properties
        Returns:
        The new property container.