Class Result

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

    public class Result
    extends ParameterSetType<Result>
    implements scala.Product, java.io.Serializable
    A result containing parameters for command response
    See Also:
    Serialized Form
    • Constructor Detail

      • Result

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

        public Result()
        A java helper to construct Result
    • Method Detail

      • emptyResult

        public static Result emptyResult()
      • apply

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

        Parameters:
        paramSet - a Set of parameters (keys with values)
        Returns:
        a Result instance with provided paramSet
      • apply

        public static Result apply​(scala.collection.immutable.Seq<Parameter<?>> params)
        A helper method to create Result instance

        Parameters:
        params - an optional list of parameters (keys with values)
        Returns:
        a Result instance with provided paramSet
      • nonEmpty

        public boolean nonEmpty()
      • 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
      • toString

        public java.lang.String toString()
        A String representation for concrete implementation of this trait
        Overrides:
        toString in class ParameterSetType<Result>
        Returns:
        (undocumented)