Class ApplicationDirectoryConfiguration

    • Method Detail

      • portablePropertyName

        public java.util.Optional<java.lang.String> portablePropertyName()
        The name of a system property which, if present, will be used to enable portable mode. If the system property is present, and can be parsed as a true value, then portable mode will be enabled and all calculated application paths will be relative to the application's working directory.
        Specified by:
        portablePropertyName in interface ApplicationDirectoryConfigurationType
        Returns:
        A property name to enable portable mode
      • withApplicationName

        public final ApplicationDirectoryConfiguration withApplicationName​(java.lang.String value)
        Copy the current immutable object by setting a value for the applicationName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for applicationName
        Returns:
        A modified copy of the this object
      • withPortablePropertyName

        public final ApplicationDirectoryConfiguration withPortablePropertyName​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional portablePropertyName attribute.
        Parameters:
        value - The value for portablePropertyName
        Returns:
        A modified copy of this object
      • withPortablePropertyName

        public final ApplicationDirectoryConfiguration withPortablePropertyName​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the portablePropertyName attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for portablePropertyName
        Returns:
        A modified copy of this object
      • equals

        public boolean equals​(java.lang.Object another)
        This instance is equal to all instances of ApplicationDirectoryConfiguration that have equal attribute values.
        Overrides:
        equals in class java.lang.Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: applicationName, portablePropertyName.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

        public java.lang.String toString()
        Prints the immutable value ApplicationDirectoryConfiguration with attribute values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string representation of the value