Package com.walkfares.odsl.var.basic
Class VarDuration
java.lang.Object
com.walkfares.odsl.var.BaseVar
com.walkfares.odsl.var.basic.VarDuration
- All Implemented Interfaces:
Var
public class VarDuration extends BaseVar implements Var
-
Constructor Summary
Constructors Constructor Description VarDuration()
-
Method Summary
Modifier and Type Method Description Var
_clone()
VarDuration
add(VarDuration dur)
UTCDate
addTo(UTCDate d)
Var
applyChanges(Var update)
static VarDuration
between(Temporal start, Temporal end)
static VarDuration
from(long time)
VarCalendar
getCalendar()
VarScalar
getDays()
Duration
getDuration()
VarScalar
getHours()
String
getId()
VarScalar
getMinutes()
VarScalar
getMonths()
Period
getPeriod()
VarScalar
getSeconds()
VarType
getType()
VarScalar
getYears()
static VarDuration
parse(String dur)
Var
set_Id(String id)
VarDuration
setCalendar(VarCalendar calendar)
VarDuration
setDuration(Duration duration)
VarDuration
setPeriod(Period period)
UTCDate
substractFrom(UTCDate d)
VarDuration
subtract(VarDuration dur)
String
toString()
Methods inherited from class com.walkfares.odsl.var.BaseVar
add, getLinks, getTypeName, getUID, setLinks, tryConvert
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.walkfares.odsl.var.Var
DATE, DATE_NULL, DYNAMIC, getReference, getTypeName, getUID, isEmpty, LIST, SCALAR, setId, tryConvert
-
Constructor Details
-
VarDuration
public VarDuration()
-
-
Method Details
-
getType
-
getId
-
set_Id
-
getCalendar
-
setCalendar
-
getPeriod
-
setPeriod
-
getDuration
-
setDuration
-
getYears
-
getMonths
-
getDays
-
getHours
-
getMinutes
-
getSeconds
-
_clone
-
between
-
from
-
parse
-
addTo
-
substractFrom
-
add
-
subtract
-
toString
-
applyChanges
- Specified by:
applyChanges
in interfaceVar
- Overrides:
applyChanges
in classBaseVar
-