Package csw.params.core.models
Class Struct
- java.lang.Object
-
- csw.params.core.generics.ParameterSetType<Struct>
-
- csw.params.core.models.Struct
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public class Struct extends ParameterSetType<Struct> implements scala.Product, java.io.Serializable
A configuration for setting telescope and instrument parametersparam: paramSet a set of Parameters
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Struct
apply(scala.collection.immutable.Set<Parameter<?>> paramSet)
A helper method to create Struct from given paramSetprotected Struct
create(scala.collection.immutable.Set<Parameter<?>> data)
Create a new Struct instance when a parameter is added or removedscala.collection.immutable.Set<Parameter<?>>
paramSet()
Holds the parameters for this parameter setjava.lang.String
toString()
A comma separated string representation of all values this Struct holds-
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, typeName
-
-
-
-
Constructor Detail
-
Struct
public Struct(scala.collection.immutable.Set<Parameter<?>> paramSet)
-
Struct
public Struct()
A Java helper to create Struct with empty paramSet
-
-
Method Detail
-
apply
public static Struct apply(scala.collection.immutable.Set<Parameter<?>> paramSet)
A helper method to create Struct from given paramSet- Parameters:
paramSet
- a set of parameters- Returns:
- an instance of Struct
-
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<Struct>
- Returns:
- (undocumented)
-
create
protected Struct create(scala.collection.immutable.Set<Parameter<?>> data)
Create a new Struct instance when a parameter is added or removed- Specified by:
create
in classParameterSetType<Struct>
- Parameters:
data
- a set of parameters- Returns:
- a new instance of Struct with provided data
-
toString
public java.lang.String toString()
A comma separated string representation of all values this Struct holds- Overrides:
toString
in classParameterSetType<Struct>
- Returns:
- (undocumented)
-
-