Class Result

  • All Implemented Interfaces:
    ParameterSetKeyData, java.io.Serializable, scala.Equals, scala.Product

    public class Result
    extends ParameterSetType<Result>
    implements ParameterSetKeyData, scala.Product, java.io.Serializable
    A result containing parameters for command response

    param: prefix identifies the subsystem that received the command and created command response out of it param: paramSet an optional initial set of parameters (keys with values)

    See Also:
    Serialized Form
    • Constructor Detail

      • Result

        public Result​(Prefix prefix,
                      scala.collection.immutable.Set<Parameter<?>> paramSet)
      • Result

        public Result​(java.lang.String prefix)
        A java helper to construct Result
        Parameters:
        prefix - (undocumented)
    • Method Detail

      • apply

        public static Result apply​(Prefix prefix,
                                   scala.collection.immutable.Set<Parameter<?>> paramSet)
        A helper method to create Result instance

        Parameters:
        prefix - identifies the subsystem that received the command and created command response out of it
        paramSet - an optional initial set of parameters (keys with values)
        Returns:
        a Result instance with provided prefix and paramSet
      • create

        protected Result create​(scala.collection.immutable.Set<Parameter<?>> data)
        Create a new Result instance when a parameter is added or removed

        Specified by:
        create in class ParameterSetType<Result>
        Parameters:
        data - set of parameters
        Returns:
        a new instance of Result with provided data