public interface Duration
TimeUnit| Modifier and Type | Method and Description |
|---|---|
long |
getDelta()
Return the number of milliseconds left over when calculating the number of
TimeUnit's that fit into the
given time range. |
long |
getQuantity()
Return the calculated quantity of
TimeUnit instances. |
long |
getQuantityRounded(int tolerance)
Return the calculated quantity of
TimeUnit instances, rounded up if getDelta() is greater than or
equal to the given tolerance. |
TimeUnit |
getUnit()
|
boolean |
isInFuture()
|
boolean |
isInPast()
|
long getQuantity()
TimeUnit instances.long getQuantityRounded(int tolerance)
TimeUnit instances, rounded up if getDelta() is greater than or
equal to the given tolerance.TimeUnit getUnit()
long getDelta()
TimeUnit's that fit into the
given time range.boolean isInPast()
boolean isInFuture()
Copyright © 2015 OCPsoft. All Rights Reserved.