Class ImmutableRunInfo

    • Constructor Detail

      • ImmutableRunInfo

        public ImmutableRunInfo​(Map<String,​? extends String> env,
                                CommandLineArgs args)
        Construct a new immutable RunInfo instance.
        Parameters:
        env - The value for the env attribute
        args - The value for the args attribute
    • Method Detail

      • env

        public com.google.common.collect.ImmutableMap<String,​String> env()
        Specified by:
        env in class RunInfo
        Returns:
        any additional environment variables that should be used when executing
      • args

        public CommandLineArgs args()
        Specified by:
        args in class RunInfo
        Returns:
        the command line arguments to use when executing
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: env, args.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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