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()VarDurationadd(VarDuration dur)UTCDateaddTo(UTCDate d)VarapplyChanges(Var update)static VarDurationbetween(Temporal start, Temporal end)static VarDurationfrom(long time)VarCalendargetCalendar()VarScalargetDays()DurationgetDuration()VarScalargetHours()StringgetId()VarScalargetMinutes()VarScalargetMonths()PeriodgetPeriod()VarScalargetSeconds()VarTypegetType()VarScalargetYears()static VarDurationparse(String dur)Varset_Id(String id)VarDurationsetCalendar(VarCalendar calendar)VarDurationsetDuration(Duration duration)VarDurationsetPeriod(Period period)UTCDatesubstractFrom(UTCDate d)VarDurationsubtract(VarDuration dur)StringtoString()Methods inherited from class com.walkfares.odsl.var.BaseVar
add, getLinks, getTypeName, getUID, setLinks, tryConvertMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
applyChangesin interfaceVar- Overrides:
applyChangesin classBaseVar
-