Package csw.params.commands
Class Result
- java.lang.Object
-
- csw.params.core.generics.ParameterSetType<Result>
-
- csw.params.commands.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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Result
apply(scala.collection.immutable.Seq<Parameter<?>> params)
A helper method to create Result instancestatic Result
apply(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 removedstatic Result
emptyResult()
boolean
nonEmpty()
scala.collection.immutable.Set<Parameter<?>>
paramSet()
Holds the parameters for this parameter setjava.lang.String
toString()
A String representation for concrete implementation of this trait-
Methods inherited from class csw.params.core.generics.ParameterSetType
add, apply, contains, dataToString, exists, find, get, get, getStringMap, jFind, jGet, jGet, jGetStringMap, jMadd, jMissingKeys, jMissingKeys, jParamSet, madd, madd, madd, missingKeys, parameter, remove, remove, size, typeName
-
-
-
-
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
-
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)
-
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 classParameterSetType<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 classParameterSetType<Result>
- Returns:
- (undocumented)
-
-