Package csw.params.commands
Class Result
- java.lang.Object
-
- csw.params.core.generics.ParameterSetType<Result>
-
- csw.params.commands.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 responseparam: 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Result
apply(Prefix prefix, scala.collection.immutable.Set<Parameter<?>> paramSet)
A helper method to create Result instanceprotected Result
create(scala.collection.immutable.Set<Parameter<?>> data)
Create a new Result instance when a parameter is added or removedscala.collection.immutable.Set<Parameter<?>>
paramSet()
Holds the parameters for this parameter setPrefix
prefix()
Returns an object providing the subsystem and prefix for the parameter set-
Methods inherited from class csw.params.core.generics.ParameterSetType
add, apply, contains, dataToString, exists, find, get, get, getStringMap, jFind, jGet, jGet, jGetStringMap, jMissingKeys, jMissingKeys, jParamSet, madd, madd, madd, missingKeys, parameter, remove, remove, size, toString, typeName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface csw.params.core.generics.ParameterSetKeyData
prefixStr, subsystem, toString
-
-
-
-
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 itparamSet
- an optional initial set of parameters (keys with values)- Returns:
- a Result instance with provided prefix and paramSet
-
prefix
public Prefix prefix()
Description copied from interface:ParameterSetKeyData
Returns an object providing the subsystem and prefix for the parameter set- Specified by:
prefix
in interfaceParameterSetKeyData
- Returns:
- (undocumented)
-
paramSet
public scala.collection.immutable.Set<Parameter<?>> paramSet()
Description copied from class:ParameterSetType
Holds the parameters for this parameter set- Specified by:
paramSet
in classParameterSetType<Result>
- Returns:
- (undocumented)
-
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 classParameterSetType<Result>
- Parameters:
data
- set of parameters- Returns:
- a new instance of Result with provided data
-
-