Interface WithPropertiesBuilder<A>

    • Method Detail

      • withProperty

        A withProperty​(String key,
                       Object value)
        Add a property
        Parameters:
        key - the key
        value - the value
        Returns:
        a builder with the key-value property pair added to it
      • withPropertyIfPresent

        A withPropertyIfPresent​(String key,
                                Optional<?> value)
        Add a property, if it is present (don't add it otherwise)
        Parameters:
        key - the key
        value - the value
        Returns:
        a builder with the key-value property pair added to it, if the value is present
      • withoutProperty

        A withoutProperty​(String key,
                          Object value)
        Remove a property with matching key and value
        Parameters:
        key - the key to remove
        value - the value to remove
        Returns:
        a builder with the key-value property pair removed from it
      • withoutProperty

        A withoutProperty​(String key)
        Remove a property
        Parameters:
        key - the key to remove
        Returns:
        a builder with the key removed from it
      • withProperties

        A withProperties​(Properties properties)
        Add in existing properties
        Parameters:
        properties - to add
        Returns:
        a builder with the specified properties