Package csw.params.core.models
Class ObsId
- java.lang.Object
-
- csw.params.core.models.ObsId
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public class ObsId extends java.lang.Object implements scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ObsId(java.lang.String obsId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.Option<ObsId>
asOption()
Returns the ObsId in form of Optionjava.util.Optional<ObsId>
asOptional()
Returns the ObsId in form of Optionalstatic ObsId
empty()
Represents an empty ObsIdjava.lang.String
obsId()
-
-
-
Method Detail
-
empty
public static ObsId empty()
Represents an empty ObsId- Returns:
- an ObsId with empty string
-
obsId
public java.lang.String obsId()
-
asOption
public scala.Option<ObsId> asOption()
Returns the ObsId in form of Option- Returns:
- a defined Option with obsId
-
asOptional
public java.util.Optional<ObsId> asOptional()
Returns the ObsId in form of Optional- Returns:
- a defined Optional with obsId
-
-