Class EntityPropertiesBuilder


  • public class EntityPropertiesBuilder
    extends Object
    • Constructor Detail

      • EntityPropertiesBuilder

        public EntityPropertiesBuilder​(String context,
                                       String method,
                                       InstanceProperties properties)
        Default constructor.
        Parameters:
        context - the builder is called from.
        method - the builder is called from.
        properties - to build.
    • Method Detail

      • withStringProperty

        public EntityPropertiesBuilder withStringProperty​(String key,
                                                          String value)
        Returns the same builder
        Parameters:
        key - - name of the property
        value - - value of the property
        Returns:
        the builder to use to return
      • withBooleanProperty

        public EntityPropertiesBuilder withBooleanProperty​(String key,
                                                           Boolean value)
        Returns the same builder
        Parameters:
        key - - name of the property
        value - - value of the property
        Returns:
        the builder to use to return
      • withIntegerProperty

        public EntityPropertiesBuilder withIntegerProperty​(String key,
                                                           Integer value)
        Returns the same builder
        Parameters:
        key - - name of the property
        value - - value of the property
        Returns:
        the builder to use to return
      • build

        public InstanceProperties build()
        Returns the instance properties object
        Returns:
        properties