Package csw.params.commands
Class Result
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
A result containing parameters for command response
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Result
A helper method to create Result instancestatic Result
A helper method to create Result instanceprotected Result
Create a new Result instance when a parameter is added or removedstatic Result
boolean
nonEmpty()
scala.collection.immutable.Set<Parameter<?>>
paramSet()
Holds the parameters for this parameter settoString()
A String representation for concrete implementation of this traitMethods 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Result
-
Result
public Result()A java helper to construct Result
-
-
Method Details
-
emptyResult
-
apply
A helper method to create Result instance- Parameters:
paramSet
- a Set of parameters (keys with values)- Returns:
- a Result instance with provided paramSet
-
apply
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
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
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
A String representation for concrete implementation of this trait- Overrides:
toString
in classParameterSetType<Result>
- Returns:
- (undocumented)
-