Package org.apache.ofbiz.base.util
Class TimeDuration.NullDuration
- java.lang.Object
-
- org.apache.ofbiz.base.util.TimeDuration
-
- org.apache.ofbiz.base.util.TimeDuration.NullDuration
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TimeDuration>
- Enclosing class:
- TimeDuration
protected static class TimeDuration.NullDuration extends TimeDuration
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.ofbiz.base.util.TimeDuration
TimeDuration.NullDuration
-
-
Field Summary
-
Fields inherited from class org.apache.ofbiz.base.util.TimeDuration
days, hours, milliseconds, minutes, months, seconds, years, ZeroTimeDuration
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NullDuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.icu.util.Calendar
addToCalendar(com.ibm.icu.util.Calendar cal)
Add this time duration to a Calendar instance.boolean
isZero()
Returnstrue
if this duration is zero.-
Methods inherited from class org.apache.ofbiz.base.util.TimeDuration
compareTo, days, equals, fromLong, fromNumber, hashCode, hours, isNegative, milliseconds, minutes, months, parseDuration, seconds, toLong, toString, years
-
-
-
-
Method Detail
-
addToCalendar
public com.ibm.icu.util.Calendar addToCalendar(com.ibm.icu.util.Calendar cal)
Description copied from class:TimeDuration
Add this time duration to a Calendar instance. Returns the original Calendar instance.- Overrides:
addToCalendar
in classTimeDuration
- Returns:
cal
-
isZero
public boolean isZero()
Description copied from class:TimeDuration
Returnstrue
if this duration is zero.- Overrides:
isZero
in classTimeDuration
- Returns:
true
if this duration is zero
-
-