public abstract class BasicUnit extends Object implements ChronoUnit
Abstract time unit class which can define its own rule.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isCalendrical()
Queries if this time unit is calendrical respective is at least
as long as a calendar day.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLengthpublic boolean isCalendrical()
ChronoUnitQueries if this time unit is calendrical respective is at least as long as a calendar day.
Implementation note: The method must be consistent with the typical
length of the unit. The expression
Double.compare(unit.getLength(), 86400.0) >= 0 is
equivalent to unit.isCalendrical().
isCalendrical in interface ChronoUnittrue if at least as long as a day else falseCopyright © 2014. All rights reserved.